You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Alberto Massari <am...@datadirect.com> on 2005/07/19 19:10:21 UTC

Re: Does using setlocale to set other codepage will effect the transcoder made by the XMLPlatformUtils::fgTransService->makeNewLCPTranscoder()

Hi Gurminder,
can you explain us why you are "parsing strings through 
XMLString::transcode"? A snippet of code would help too.

Thanks,
Alberto

At 21.49 19/07/2005 +0530, Gurminder Singh wrote:
>Hi community,
>
>
>
>I am try to parse an UTF-8 encoded xml document containing some japanese
>strings. When i parse the Japanese strings through XMLString::trancode
>which by default uses the XMLLCPTranscoder which finally make the
>Win32LCPTranscoder which is not able to parse the strings correctly and
>give garbage characters.
>
>Then i tried using ICU transervice by defining "XML_USE_ICU_TRANSCODER"
>still the trascoder made is on the basis of codepage returned by the
>call GetACP() ; my question is if i use the setlocale to change the
>codepage to japanese from 1252 (default on XP)  will it effect the
>transcoder returned.
>
>
>
>Another one is can i transcode to/from something besides the local code
>page using XMLString::transcode
>
>
>
>Any help is appreciated.
>
>
>
>--Regards
>
>--Gurminder singh.
>
>
>
>
>
>--Regards
>
>--Gurminder singh.
>
>