no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


php_unicode [2012/05/17 22:57] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== PHP Unicode ======
  
 +  * [[PHP]]
 +
 +==== fgetcsv ====
 +
 +The ''fgetcsv'' function in PHP will truncate data if it has one-byte characters.  A fix:
 +
 +<code>
 +while ($data = fgetcsv($handle, $line_max, ',')) {
 +     $data = array_map(utf8_encode, $data);
 +}
 +</code>

Navigation
QR Code
QR Code php_unicode (generated for current page)