note 110010 added to function.mb-convert-encoding
| From: | urko at wegetit dot eu | Date: | Tue, 11 Sep 2012 18:17:31 +0000 |
| Subject: | note 110010 added to function.mb-convert-encoding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-190625@lists.php.net to get a copy of this message | ||
If you are trying to generate a CSV (with extended chars) to be opened at Exel for Mac, the only
that worked for me was:
mb_convert_encoding( $CSV, 'Windows-1252', 'UTF-8');
I also tried this:
//Separado OK, chars MAL
iconv('MACINTOSH', 'UTF8', $CSV);
//Separado MAL, chars OK
chr(255).chr(254).mb_convert_encoding( $CSV, 'UCS-2LE', 'UTF-8');
But the first one didn't show extended chars correctly, and the second one, did't separe
fields correctly
----
Server IP: 69.147.83.197
Probable Submitter: 82.130.195.135
----
Manual Page -- http://www.php.net/manual/en/function.mb-convert-encoding.php
Edit -- https://master.php.net/note/edit/110010
Del: integrated -- https://master.php.net/note/delete/110010/integrated
Del: useless -- https://master.php.net/note/delete/110010/useless
Del: bad code -- https://master.php.net/note/delete/110010/bad+code
Del: spam -- https://master.php.net/note/delete/110010/spam
Del: non-english -- https://master.php.net/note/delete/110010/non-english
Del: in docs -- https://master.php.net/note/delete/110010/in+docs
Del: other reasons-- https://master.php.net/note/delete/110010
Reject -- https://master.php.net/note/reject/110010
Search -- https://master.php.net/manage/user-notes.php