[xml] please, help with xmlFindCharEncodingHandler() or iconv?
- From: VIRT <virtuga mail ru>
- To: xml gnome org
- Subject: [xml] please, help with xmlFindCharEncodingHandler() or iconv?
- Date: Wed, 23 Jul 2003 20:26:10 +0400
My Name is Vladimir, I am from Moscow, so my encoding=windows-1251
I use your libxml2 and iconv (both of the libraries are present).
I write on MS Visul C++ under windows 2000.
Here is the question.
How can I convert character strings inside my program from utf-8 to
windows-1251 (russian symbols)?
I can read from and write to the xml-file in windows-1251, but I can
not convert utf-8 to windows-1251 INSIDE the program.
I used function
handler = xmlFindCharEncodingHandler( "windows-1251" );
and handler returned !=0, but handler->output == handler->input==0.
So, I can not use the libxml-document's example.
By the way, I saw there is handler->iconv_in!=0 and handler->iconv_out!=0.
Should I use them? But how?
Sorry for my English. Is it clear what I need and what I mean?
SY, Vladimir Irtuga, Moscow.
mailto:virtuga mail ru
] [Thread Prev