Recommend this page to a friend!
  Classes of peyman  >  PHP Convert CSV to UTF-8  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Convert CSV to UTF-8
Convert a CSV file to have data in UTF-8 encoding
Author: By
Last change:
Date: 1 year ago
Size: 610 bytes


Class file image Download


convert CSV file encoding to utf-8


$cv = new convert_csv_to_utf8($file_address,$saveto=false);
  • file_address : csv file address
  • saveto (optional) : save fixed csv file to location . if not set fixed csv file will be replaced with original csv ### return : return converted/true if successfully convert/fixed csv file , return filenotfind/false if file is not exist


$string = convert_csv_to_utf8::convert_to_utf8($string, $encoding);
  • string : your text
  • encoding : your text encoding ### return : return encoded text to utf-8

For more information send a message to info at phpclasses dot org.