Posted 03 August 2006 - 05:46 AM
I've noticed when I run the htmlentities function on chinese text it causes it to come out all jumbled out. Is there a way to avoid this?
Posted 03 August 2006 - 12:38 PM
Like htmlspecialchars(), htmlentities takes an optional third argument charset which defines character set used in conversion. Support for this argument was added in PHP 4.1.0. Presently, the ISO-8859-1 character set is used as the default.
Try using one of the available third argument settings.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users