HI,

I use Linux Slackware 7.1 with kernel 2.4.4
platform i686

and my locale setting are :
   setenv LC_CTYPE ISO-8859-1
   setenv LANG fr_CA

Xerces ver 1.4 for Unix system

When I parse a xml file with SAX tool it works good and
it take all the latin accents(�,etc..), cool !!!

When I want to do the inverse way (data get from sax to XML)
I use DOM tree so I put the data ( char*) containing French accents
like : 
MapElem.appendChild(doc.createTextNode(thisMap->mapit(keyname).c_str()));

It' work ok if my string don't contains latin accents,
but if I put only 1 or more accents in the string wherever the position of 
the accent, the rawBuffer of this Domstring return 0
and the length function return 0 too.

PS: I checked the string just before insertion in DOMstring object
and it's ok (containing accents)

So when I use accents in Domstring, it dumps the entire string

could you please help me!!!

there's a copy of my xml readed by SAX
and the data still good till I put it in DOMstring

<?xml version="1.0" encoding="ISO-8859-1"?>
<TEST>
<CFG id="DEBUG_LEVEL">5</CFG>
<CFG id="SECURITY_LEVEL">1</CFG>
<CFG id="LOG_ACTIVITY_LEVEL">4</CFG>
<CFG id="RANDOM_HOMEPAGE">N</CFG>
<CFG id="HOMEPAGE_NUM_ITEMS">9</CFG>
<CFG id="W_CREDIT_CARD"><EN>Credit Card</EN><FR>Carte de cr�dit</FR></CFG>
<CFG id="W_ORDER_COMPLETED"><EN>This order is completed.</EN><FR>Cette 
commande a �t� trait�e et compl�t�e.</FR></CFG>
</TEST>

DTD file :
<?xml encoding="ISO-8859-1"?>
<!ELEMENT TEST (CFG)+>
<!ELEMENT CFG (#PCDATA|EN|FR|ES)*>
<!ATTLIST CFG id ID #REQUIRED>
<!ELEMENT EN (#PCDATA)>
<!ELEMENT FR (#PCDATA)>
<!ELEMENT ES (#PCDATA)>

please give me an answer
THANKS  Martin
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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

Reply via email to