Re: [PHP] Problem when encoding non-english into UTF-8

2005-08-16 Thread John Nichel

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?


Please help! 



http://us2.php.net/iconv

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



[PHP] Problem when encoding non-english into UTF-8

2005-08-15 Thread Wong HoWang
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?

Please help! 

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



Re: [PHP] Problem when encoding non-english into UTF-8

2005-08-15 Thread Jasper Bryant-Greene

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



[PHP] Problem with Encoding

2001-09-08 Thread Harry Lau

I want to include a string into a PNG by ImageTTFText(),
where some of the chars are encoded in BIG5.
I have found the revalent TTF for BIG5.

The output really gives some Traditional Chinese chars,
but the chars are not those I want.
(I think this problem also exist in Shift-JIS encoding.)

Would anyone give me some suggestions?
Thanks a lot :)

Harry





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]