mysql - C# ODBC Exception Incorrect String value -


i using c# parse chat log , insert messages database.

when trying insert string "don't worry, it's unloaded" (with double quotes) gives me following exception:

system.data.odbc.odbcexception: error [hy000] [mysql][odbc 5.1 driver][mysqld-5.5.11]incorrect string value: '\xef\xbb\xbf it...' column 'msg' @ row 1 @ void system.data.odbc.odbcconnection.handleerror(odbchandle hrhandle, retcode retcode)

the database using latin-1 default collation encoding scheme.

i have tried switching utf-8 gave me error on same line.

not sure means specific error, ef bb bf utf bom character causing issue.

this answer pointed out client connection needs set proper character set well. c# client character isn't matching mysql encoding.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -