I have some documents, formatted in XML. I want to store their contents (raw text, formatting preserved) in cells in an SQL table, as LONGTEXT
, so that I can simply grab the value of a cell and load it in a webpage later. I am doing this via MySQL Workbench.
However, when I try to apply the additions to my table, I get error 1366: Incorrect string value: \xE2\x80\xAF1, ...
I tried changing the character set to utf-8-general-ci
and cp1251
, but I keep getting the same errors.
Also, I searched the XML file for the string \xE2\x80\xAF1
, but it's not even in the file.
Does anybody know what this string is?
The XML file is only 219KB so I think it should (very) easily fit in a LONGTEXT
entry.
Does XML make use of any characters that could cause this error?
Am I missing another cause of the error?