17.02.2011, 15:23
Waddup!
So, I have this problem here.
When I use mysql_real_escape_string on strings, where first letter is unicode (ą č ę ė į š ų ū ž), the whole script gets messed up, check this out.
I think it's somehow related to charsets, are there any fixes, or it's inside the plugin?
So, I have this problem here.
When I use mysql_real_escape_string on strings, where first letter is unicode (ą č ę ė į š ų ū ž), the whole script gets messed up, check this out.
Код:
[17:48:20] --- BEFORE ESCAPE --- [17:48:20] name -> Čiulpk [17:48:20] rank1 -> neivesta [17:48:20] rank2 -> neivesta [17:48:20] rank3 -> neivesta [17:48:20] rank4 -> neivesta [17:48:20] rank5 -> neivesta [17:48:20] rank6 -> neivesta [17:48:20] --- AFTER ESCAPE --- [17:48:20] name -> ˙˙˙Č [17:48:20] rank1 -> neivesta [17:48:20] rank2 -> neivesta [17:48:20] rank3 -> neivesta [17:48:20] rank4 -> neivesta [17:48:20] rank5 -> neivesta [17:48:20] rank6 -> neivesta