Hi,
        I have adjusted some of your code. Note I have not compiled it as 
I do not have AutoXMLCh etc. You want to avoid changing from XMLCh to 
string because you will lose information. string does not support unicode 
in any way. You will see that you now store XMLCh in your maps and when 
you want to retrieve them you have to transcode into an XMLCh using 
XMLString::transcode. 
        So now you will get an XMLCh* back from your getString method. If
you want to view this via cout you will have to transcode. Note that you
will still see the same behaviour if your local code page does not support
the special characters. Mine does not and I get a blank line. That does
not mean that they are not there. What exactly do you want the values for?

Gareth



On Wed, 30 Jul 2003, Damien Damien wrote:

> I have included a testprogram with comments on what I want it to do... and 
> what it doesn't do.
> If anyone has the time to look at it and help me out I would be happy. I'm 
> new to both unicode and XML... So bear with me ;)
> 
> Best regards
> Daniel
> 
> 
> 
> >From: Gareth Reakes <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> >Subject: Re: UTF8 problems
> >Date: Tue, 29 Jul 2003 15:42:49 +0100 (BST)
> >
> >Hi,
> >     I don't know what SDL_ttf is but here goes a short explanation of
> >what is going on. If you are using the DOMWriter to write out UTF-8 then
> >in order to see all the characters you will need to open it in a
> >editor/browser that understands UTF-8. XMLCh is UTF-16 so you will need to
> >transcode it before you can see it (I don't know if SDL_ttf will do this
> >for you). As for the matter of the transcode, it will transcode to your
> >local code page. Does your local code page support these special
> >characters?
> >
> >Gareth
> >

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services


Attachment: test.tar.gz
Description: GNU Zip compressed data

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

Reply via email to