PHP & Illegal mix of collations in MySql dump file -


i wrote php script harvest data want enter database. includes user's usernames need entered, users chose usernames upside down text, i.e, 'uıɯpɐ'

i collation error when use username in clause, there way php sanitize before going database avoid this?

#1267 - illegal mix of collations (latin1_swedish_ci,implicit) , (utf8_general_ci,coercible) operation '='  

the way script set don't have of choice use username in clause.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -