Jump to content

Archived

This topic is now archived and is closed to further replies.

Heero

htmlentities function

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.