Re: How to write UTF-8 encoded XML data to XML column?
- From: Nigel Charman <ncharmSpamOff@xxxxxxxxxxxx>
- Date: Sat, 23 Jul 2005 00:14:44 +1200
In the absence of any response, how can I file this as a potential fault with the JDBC driver?
It appears that there may be 2 faults:
1) The exception "XML parsing: line 1, character 38, unable to switch the encoding" when writing UTF-8 data to the database using prepared statements.
2) XML documents with no BOM and no explicit encoding is being treated differently than documents with an explicit encoding of UTF-8. (This is inferred since data with an explicit encoding fails and data with no encoding succeeds).
Michael Rhys covers a similar issue in his posting "Heads up on upcoming change to passing UTF-16 encoded XML via SNCLI and ADO.Net" on microsoft.private.sqlserver2005.xml.
Regards Nigel
Nigel Charman wrote:
I am having trouble writing XML data to an XML column using a PreparedStatement, when the XML data contains the XML declaration
<?xml version="1.0" encoding="UTF-8"?>.
.
- References:
- How to write UTF-8 encoded XML data to XML column?
- From: Nigel Charman
- How to write UTF-8 encoded XML data to XML column?
- Prev by Date: Re: redistribution
- Next by Date: 2005 drivers don't like my select statement
- Previous by thread: How to write UTF-8 encoded XML data to XML column?
- Next by thread: Re: How to write UTF-8 encoded XML data to XML column?
- Index(es):
Relevant Pages
|
Loading