S
stil
hi,
i've got a little problem with encoding in UTF_16.
i create my document, giving him to my writer to write in a string,
when i set an encoding in UTF-8:
DOMWriter* L_poWriter = L_poImplementation->createDOMWriter();
XMLCh* L_poEncoding = XMLString::transcode( "UTF-8" );
L_poWriter->setEncoding(L_poEncoding);
and then write and get the result:
L_poWriter->writeNode(L_poTarget, *P_poNode);
// WARNING
// using reinterpret cast because the other cast didn't work:
// one day, it's will explode
P_rsResult =
string(
reinterpret_cast<const char*>(
L_poTarget->getRawBuffer()
)
);
the resulting string is valid and contains my Xml.
when i do the same except i encode in UTF-16 the resulting string is
empty
is use xerces v.2.4.0-1.7.0
if you have any idea of what append ?
thanks in advance.
stil
i've got a little problem with encoding in UTF_16.
i create my document, giving him to my writer to write in a string,
when i set an encoding in UTF-8:
DOMWriter* L_poWriter = L_poImplementation->createDOMWriter();
XMLCh* L_poEncoding = XMLString::transcode( "UTF-8" );
L_poWriter->setEncoding(L_poEncoding);
and then write and get the result:
L_poWriter->writeNode(L_poTarget, *P_poNode);
// WARNING
// using reinterpret cast because the other cast didn't work:
// one day, it's will explode
P_rsResult =
string(
reinterpret_cast<const char*>(
L_poTarget->getRawBuffer()
)
);
the resulting string is valid and contains my Xml.
when i do the same except i encode in UTF-16 the resulting string is
empty
is use xerces v.2.4.0-1.7.0
if you have any idea of what append ?
thanks in advance.
stil