[xsd-users] problem with utf-8 encoding

Jan Klimke jan.klimke at hpi.uni-potsdam.de
Tue Sep 30 07:18:01 EDT 2008


Hi,

i got a problem serializing object structures which contain characters
like 'ü' or 'ä'. I Allready had a look into the code. The problem arises
when transcoding the string to xmlch. The following funtction throws an
'invalid_utf8_string' exception:

template <typename C> XMLCh* char_transcoder<C>::from (const C* s,
std::size_t len)

Those characters should be valid according to my mind. Their "UTF-8"
code is 252 'ü' and 228 'ä'.

Do i have to use a wchar ? Or how am i able to correctly serialize
strings containing such characters ?

Greetings,
Jan

 




More information about the xsd-users mailing list