On 8/19/2010 12:30 AM, Jasmine_Shaikh wrote:
Hi Dave,
We have a similar problem here while using transcode in our external
function. It throws the TranscodingError for strings in East Asian
Languages. Our function actually encodes the XalanDOMString, for which we
need to get std::string from XalanDOMString. Similar to what you said I have
read it at many places that its not good to transcode to the local code
page, but I could not find any other method of Xalan that gives me a C
string.
Could you please provide any suggestions regarding this.
You should transcode to UTF-8. Create a transcoder using
XalanTranscodingServices::makeNewTranscoder(). Transcode the data into a
char buffer, then use that buffer to construct a std::string instance.
Dave