note 80424 added to function.mb-convert-encoding
| From: | rodrigo at bb2 dot co dot jp | Date: | Tue, 15 Jan 2008 11:47:52 +0000 |
| Subject: | note 80424 added to function.mb-convert-encoding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135116@lists.php.net to get a copy of this message | ||
For those who can´t use mb_convert_encoding() to convert from one charset to another as a metter
of lower version of php, try iconv().
I had this problem converting to japanese charset:
$txt=mb_convert_encoding($txt,'SJIS',$this->encode);
And I could fix it by using this:
$txt = iconv('UTF-8', 'SJIS', $txt);
Maybe it´s helpfull for someone else! ;)
----
Server IP: 69.147.83.197
Probable Submitter: 201.58.221.60
----
Manual Page -- http://www.php.net/manual/en/function.mb-convert-encoding.php
Edit -- https://master.php.net/note/edit/80424
Del: integrated -- https://master.php.net/note/delete/80424/integrated
Del: useless -- https://master.php.net/note/delete/80424/useless
Del: bad code -- https://master.php.net/note/delete/80424/bad+code
Del: spam -- https://master.php.net/note/delete/80424/spam
Del: non-english -- https://master.php.net/note/delete/80424/non-english
Del: in docs -- https://master.php.net/note/delete/80424/in+docs
Del: other reasons-- https://master.php.net/note/delete/80424
Reject -- https://master.php.net/note/reject/80424
Search -- https://master.php.net/manage/user-notes.php