Re: Problem when encoding non-english into UTF-8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wong HoWang wrote:
Dear all,

When I try to encode non-english char. such as big5 to UTF-8 with utf8_encode(), it always generate a wrong result, which is not readable. What can I do?

From the manual [1]:

utf8_encode -- Encodes an ISO-8859-1 string to UTF-8

You're using the wrong tool for the job. Take a look at the iconv extension[2].

Jasper

[1] http://www.php.net/utf8_encode
[2] http://www.php.net/iconv

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux