Re: [libxml++] Character encoding, UTF-8 and such
- From: "Morten Hanssen" <morten hanssen pd politiet no>
- To: <libxmlplusplus-general lists sourceforge net>
- Subject: Re: [libxml++] Character encoding, UTF-8 and such
- Date: Fri, 13 Jun 2003 09:28:39 +0200
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.
******************************* (on mailgw)
email-body was scanned. No virus was found.
*******************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]