Thanks John. I copied the TranscodeToStr and TranscodeFromStr functions from
3.1 library to 2.8 library and was able to use them successfully. It worked
just fine.

However does that mean there was no way to do this in 2.8 and prior versions
of Xerces? IOW, how can I achieve this in Xerces 2.8?

Thanks,
-Ganesh

On 29 Nov 2010, at 13:45, Ganesh Pagade wrote:

> Hi,
> 
> I have a C++ string which is in UTF-8, which I am passing to
> XMLString::transcode(). However XMLString::transcode() is expecting SJIS
> (Japanese). So it returns garbage characters in XMLCh*.
> 
> So I tired using XMLUTF8Transcoder. However XMLUTF8Transcoder's
> transcodeTo()
> expects XMLCh*.
> 
> How do I convert C++ string into XMLCh* without using the
> XMLString::transcode(),
> so that I can pass it to transcodeTo()?
> 
> Or how do I make XMLString::transcode() expect UTF-8?
> 
> Any suggestions/pointers would be highly appreciated.
> 
> Thanks,
> -Ganesh




-- 
View this message in context: 
http://old.nabble.com/Convert-C%2B%2B-string-to-XMLCh*-for-XMLUTF8Transcoder-tp30330507p30341747.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to