Jump to content

mysql_real_escape_string() and ° character


anatak

Recommended Posts

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 ?

Archived

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

×
×
  • Create New...

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.