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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.