[xml] Please help...



maybe I don't undestand something.
 
I am trying to use libxml2(v2.6.2) with russian language.
Forming xmlDoc, I have placed THE SAME text ("Рус тест") as node's value and attribute's value. Of course I remember about "utf-8" coding and was using it to load "Рус тест" into xmlDoc.
 
Then tryed to dump xmlDoc into the file with this call:
xmlSaveFormatFileEnc("Test.xml", doc, "windows-1251")
 
That's what i got as resault:
 
<?xml version="1.0" encoding="windows-1251"?>
<RootNode>
  <Rus Attr="&#x420;&#x443;&#x441; &#x442;&#x435;&#x441;&#x442;">Рус тест</Rus>
</RootNode>
 
The value of "Rus" node is OK: "Рус тест"
But the value of "Attr" attribute is displayed in fugures: "&#x420;&#x443;&#x441; &#x442;&#x435;&#x441;&#x442;"
 
What can I do to see "Attr" value also in letters?
 

With respect Tyushin Vadim.
tva forsys ru


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]