Merc Studio Tech Blog
Thursday, December 1, 2011
htmlentities and utf8
Ever wonder why your utf8 charactors doesn't work with htmlentities?
try
htmlspecialchars
Example:
$sResult = htmlspecialchars($sText, ENT_COMPAT, "UTF-8");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment