From: Dedov A. <ad...@iq...> - 2004-09-29 13:40:10
|
On Wed, 29 Sep 2004 09:31:22 +0200 Frederik Himpe <fre...@ar...> wrote: > On Wednesday 29 September 2004 00:59, Dedov Anton wrote: > > Hello, > > > > I am developing C++ XML-RPC library using libxml++ > > (http://libiqxmlrpc.sourceforge.net). I used libxml++ 1.0 till this > > time. Now I need support for non-ASCII characters in my library. If I > > understand right libxml++ implements it in 2.x versions by using > > glib::ustring. > > I've been using libxml++ 1.0 some time ago to develop a SAX parser which > treated non-ASCI characters (the files were in UTF-8 and contained characters > such as __ and __), and this worked fine with std::string. It's just when for > example you ask the length of the string, you will get the length in bytes, > which will not correspond to the number of letters in the string, because > special characters need two bytes in UTF-8. So I just need convert any text from my locale's charset to utf-8 every time I process it to xml (and vice versa)? Thanks, Anton Dedov |