From: Frederik H. <fre...@ar...> - 2004-09-29 07:31:33
|
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=20 treated non-ASCI characters (the files were in UTF-8 and contained characte= rs=20 such as =E9 and =E8), and this worked fine with std::string. It's just when= for=20 example you ask the length of the string, you will get the length in bytes,= =20 which will not correspond to the number of letters in the string, because=20 special characters need two bytes in UTF-8. I'm sure someone else will correct me if I'm telling lies :-) =2D-=20 =46rederik Himpe |