Heero Posted August 3, 2006 Share Posted August 3, 2006 Hi all,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?Thanks Link to comment https://forums.phpfreaks.com/topic/16414-htmlentities-function/ Share on other sites More sharing options...
AndyB Posted August 3, 2006 Share Posted August 3, 2006 http://ca.php.net/htmlentities[quote]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.[/quote]Try using one of the available third argument settings. Link to comment https://forums.phpfreaks.com/topic/16414-htmlentities-function/#findComment-68494 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.