You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Flashner Amit <Am...@comverse.com> on 2002/09/03 10:45:38 UTC

RE: Transcoding

Hi Assaf,
If you use the transcode which returns a char array you get a byte per char
and miss the real unicode value for the character.
You should get the XMLCh* value which is unicode ucs-2 (wide char), and
trasnform it to byte array (UTF-8 or whatever) using win32's
WideCharToMultiByte .

Good luck,
Amit.

-----Original Message-----
From: Assaf Tzur-El [mailto:assaft@actimize.com]
Sent: Tuesday, September 03, 2002 12:42 PM
To: xerces-c-dev@xml.apache.org
Subject: Transcoding


Hello,

I have a problem parsing a memory buffer that contains Hebrew characters.
Transcoding doesn't work properly - the transcode() method calls a Windows
function that returns an error. I'm using VC++ 6 on a Win2K machine.

Is there a way I can set the codepage I want the string to be transcoded to?
Is there a way of giving the parser a real widechar string, and if not, why?
(I thought XML was supposed to be fully widechar)

Thanks in advance,
	Assaf Tzur-El.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org