anatak Posted September 7, 2009 Share Posted September 7, 2009 I tried saving a text with this ° character in it. I use mysql_real_escape_string() to escape the string but after posting I only have the first part of the sentence in the database. Air cooled, four stroke, 90°“L”twin cylinder, SOHC, desmodromic 2 valve per cylinder. is the full string I noticed today that mysql_real_escape_string() can not handle this ° character Air cooled, four stroke, 90 is all that is in the DB. How can I work around this ? Link to comment https://forums.phpfreaks.com/topic/173410-mysql_real_escape_string-and-%C2%B0-character/ Share on other sites More sharing options...
Mark Baker Posted September 7, 2009 Share Posted September 7, 2009 It has nothing to do with mysql_real_escape_string() and everything to do with charsets Link to comment https://forums.phpfreaks.com/topic/173410-mysql_real_escape_string-and-%C2%B0-character/#findComment-914169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.