From: Morten H. <mor...@pd...> - 2003-06-13 07:24:13
|
On Thursday, June 12, 2003 1:53 PM, Jonathan Wakely wrote: > Morten, the problem isn't that libxml++ doesn't "support" UTF-8 (it = uses > UTF-8 for all strings, just like libxml) the issue is that > std::string::size() returns the number of bytes, but when the string > contains UTF-8 data the number of bytes is not necessarily the same as > the number of characters. glib::ustring is UTF-8 aware and can tell = you > the correct number of chars. Yeah, I figured it out as well, just after I wrote the previous message. = So it really isn't too much of a problem after all; I just convert my data to UTF-8 right before I pass them on to libxml++, = and everything works like a charm. :) Morten. |