[xsd-users] A Question about Unicode Character

Boris Kolpackov boris at codesynthesis.com
Tue Apr 15 05:04:06 EDT 2008


Hi,

lvkun <lvkun2006 at gmail.com> writes:

> UTF-16:1:57 warning: Encoding (UTF-16, from XMLDecl or manually set)
> contradicts the auto-sensed encoding, ignoring it
>
> UTF-16:1:57 error: An exception occurred! Type:UTFDataFormatException,
> Message:invalid byte 2 () of a 2-byte sequence.
>
> What does it mean?

This means that there is something wrong with your XML document
probably because of the questionable manipulations you've performed
while converting it from string to wstring.

Can you explain why you need to convert it to wstring? Can't it
be simply saved directly to a file and then read from this file?

Boris




More information about the xsd-users mailing list