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="Рус тест">Рус тест</Rus> </RootNode> The value of "Rus" node is OK: "Рус
тест"
But the value of "Attr" attribute is displayed in
fugures: "Рус
тест"
What can I do to see "Attr" value also in
letters?
|