Do you mean transcode()? Transcode() works in the local code page, so
what is your local code page? Is it 8859-1? Even if it is, if you want
this to work on other machines, you should get an explicit trancoder for
the encoding you want to get the text into. Otherwise, you will get
different results on different machines. Transcode() was mainly intended
for display purposes, and for taking input from the user, which needs to
be done in the local code page, and if something cannot be represented
then it just can't be represented. For anything where you want to get it
to a particular encoding, you have to do that through a transcoder for
the encoding you want. 

-------------------------------------
Dean Roddey
The Charmed Quark Controller
[EMAIL PROTECTED]
www.charmedquark.com
 

-----Original Message-----
From: Brad Settlemyer [mailto:bws@;strongholdtech.com] 
Sent: Monday, October 28, 2002 12:12 PM
To: [List] Xerces-C List
Subject: Character encodings and utf-8, XMLString::transpose()

Hello,

  I apologize for being woefully uninformed on this topic, but I'm
confused
by how the SAX2 character function and transpose are intermingling.

I interact with a system that returned me a document wiht the following
element:

<TradeInModel>3.2TL&#xfd;MDX</TradeInModel>

Apparenently, the character function is called with the following inputs
1)  3.2TL
2)  &#xfd;
3)  MDX

No real suprises, however whenever I transpose &#xfd I receive the null
character (I think, I'm still validating all of this and trying to
figure
out exactly what is going on).  The 254th (0xfd) character in iso 8859-1
is
a y with a accent mark over top, so this really surprised me.  Why am I
receiving a null character from transpose while parsing the above
element?

Thanks,

--
Brad Settlemyer
[EMAIL PROTECTED]
(703) 547-0142


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to