how to convert unicode to chinese words

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tisa
Forum Commoner
Posts: 27
Joined: Fri Nov 28, 2003 1:14 am

how to convert unicode to chinese words

Post by tisa »

i have one contact us problem. A user send the comment to us by mail and the system will send the copy to user too.
But i found that if the user types chinese words, the words will change to unicode automatically. when i get the comment mail, all words are unicode..

I want to find the solution. Please help me.

Thank you very much
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

Are you using any headers?

If so, add this one:

Code: Select all

<?php
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
?>
tisa
Forum Commoner
Posts: 27
Joined: Fri Nov 28, 2003 1:14 am

thanks

Post by tisa »

i will try it...
thanks~~~
Post Reply