June 16, 2008 at 3:18 am
Hi,
I'm copying data from a varchar(max) column to an XML column so that I can use XQuery on the data.
Sometimes the load will fail with this error:
XML parsing: line 30, character 28, illegal xml character [SQLSTATE 42000] (Error 9420). The step failed.
When I look through the XML string the attribute it will have non ascii characters, ¨ À Ç,
this casues the load to fail.
Any suggestions on how to address this issue?
June 16, 2008 at 8:17 am
OK figured it out....
varchar(max) source data needs to be the unicode equivalent nvarchar(max)
then change the encoding on the xml from utf-8 to utf-16
repopulate the XML column.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy