Welcome Guest, Not a member yet? Register   Sign In
Special Character Problem
#6

[eluser]Natebot[/eluser]
Since you are using Unicode, try
$test = htmlspecialchars($_POST[‘posted_value’], ENT_NOQUOTES , 'UTF-8' );

Assuming your html dictates UTF-8 ( <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> ) and your database is using UTF-8 collation, then my guess it has to do with use PHP functions. Some I understand don't support UTF-8 so well.

I have read that if you do not set the optional $charset parameter in htmlspecialchars you will experience problems and even so there may still be misinterpretation of UTF-8 content.

However, am I understanding the problem corretly? Because the character Ü should not be affected by htmlspecialchars.


Messages In This Thread
Special Character Problem - by El Forum - 11-25-2008, 06:24 AM
Special Character Problem - by El Forum - 11-25-2008, 10:57 AM
Special Character Problem - by El Forum - 11-25-2008, 12:06 PM
Special Character Problem - by El Forum - 11-25-2008, 12:10 PM
Special Character Problem - by El Forum - 11-25-2008, 12:14 PM
Special Character Problem - by El Forum - 11-29-2008, 08:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB