From: Anton D. <ba...@pr...> - 2004-09-29 09:32:15
|
So I just need handly convert strings to utf-8 from my locale and vice versa each time I process xml? Thanks, Anton Dedov 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. > > I'm sure someone else will correct me if I'm telling lies :-) > > -- > Frederik Himpe > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Libxmlplusplus-general mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general |