Hi Parag,

Lele, Parag <[EMAIL PROTECTED]> writes:

>  MemBufFormatTarget *target  = new MemBufFormatTarget();
>
>  serializer->writeNode(target, *node);
>
>  const XMLByte *output = target->getRawBuffer(); // here the characters
>                                                  // are garbled
>
> The original text has Japanese characters but after using getRawBuffer()
> the output observed in debug mode is as follows
>
> ã????ã????ã?????ã?????ã??¥ã??¼ã

The result in the buffer will be in whatever XML character encoding
you have specified and if you didn't specify anything, then it will
be UTF-8. Perhaps what you are seeing are your Japanese characters
encoded in UTF-8?

Boris

-- 
Boris Kolpackov, Code Synthesis Tools
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to