note 74722 added to ref.mbstring
| From: | chris at maedata dot com | Date: | Wed, 25 Apr 2007 04:50:24 +0000 |
| Subject: | note 74722 added to ref.mbstring | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125848@lists.php.net to get a copy of this message | ||
The opposite of what Eugene Murai wrote in a previous comment is true when importing/uploading a
file. For instance, if you export an Excel spreadsheet using the Save As Unicode Text option, you
can use the following to convert it to UTF-8 after uploading:
//Convert file to UTF-8 in case Windows mucked it up
$file = explode( "\n", mb_convert_encoding( trim( file_get_contents(
$_FILES['file']['tmp_name'] ) ), 'UTF-8', 'UTF-16' ) );
----
Server IP: 69.39.81.135
Probable Submitter: 72.74.114.85
----
Manual Page -- http://www.php.net/manual/en/ref.mbstring.php
Edit -- https://master.php.net/note/edit/74722
Del: integrated -- https://master.php.net/note/delete/74722/integrated
Del: useless -- https://master.php.net/note/delete/74722/useless
Del: bad code -- https://master.php.net/note/delete/74722/bad+code
Del: spam -- https://master.php.net/note/delete/74722/spam
Del: non-english -- https://master.php.net/note/delete/74722/non-english
Del: in docs -- https://master.php.net/note/delete/74722/in+docs
Del: other reasons-- https://master.php.net/note/delete/74722
Reject -- https://master.php.net/note/reject/74722
Search -- https://master.php.net/manage/user-notes.php