Thanks, I will try that.

Regards,
JB 

-----Original Message-----
From: David Bertoni [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2008 1:04 PM
To: [email protected]
Subject: Re: Sterling pound sign encoding sith XML string

Wons, Jean-Baptiste wrote:
> Hello,
> 
> The fact that I hardcoded the Pound sign in this piece of code was
just to show my problem.
> In my program, I actualy get data from a file. Then I try to make a
xml with the data embedded in this file.
That's a very important piece of information that you didn't mention in 
your original post.

> 
> Sometime, I have the pound sign in this file (this file is encoded in
ISO-8859-1).
> But the transcode method of XMLString get quite upset with that, and
when I transcode the xml back to ISO-8859-1, I get the 0x1a.
XMLString::transcode() converts between UTF-16 and the local code page. 
  Unless you can guarantee the local code page is ISO-8859-1, then don't

use XMLString::transcode().

> 
> Is there any way to work-around this ?
If you know the encoding of the data, then you should just create a 
transcoder for that encoding.  Take a look at 
XMLTransService::makeNewXMLTranscoder() in 
xercesc/util/TransService.hpp, and search through the code for examples 
of how to use it.

Dave

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as "KBC FP"). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided "as is", 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.

Reply via email to