I am going crazy. Please help.
I have a form with a text input. This is inserted into My SQL text column. Sometime a user will enter some unknown character that breaks the insert.
For example one that I just found is Topkapı
, which is a town in Turkey. You will notice the last character ı
. On insert, this causes a database error:
Error Executing Database Query. Incorrect string value: '/xC4/xB1 and...' for column 'country_description' at row 1
Is there a simple method to either remove these characters or escape them? I am using cfqueryparam and tried HTMLEditFormat, CFSavecontent etc to no avail.