Re: [libxml++] Character encoding, UTF-8 and such
- From: Fredrik Arnerup <e97_far e kth se>
- To: "" <libxmlplusplus-general lists sourceforge net>, Morten Hanssen <morten hanssen pd politiet no>
- Cc: "" <libxmlplusplus-general lists sourceforge net>
- Subject: Re: [libxml++] Character encoding, UTF-8 and such
- Date: Thu, 12 Jun 2003 14:28:06 +0200
Citerar Morten Hanssen <morten hanssen pd politiet no>:
> At Thursday, June 12, 2003 1:27 PM, Murray Cumming wrote:
> > No, it's always UTF8. Input and Output. That's simple, and that should
> work.
> > You can use glib::ustring with that now if you want.
>
> Well... libxml++ still takes std::string references for it's input of
> strings. And until that changes I can't see any way (short of accessing
> libxml directly) that I could use anything other than that. It's not possible
> to store UFT-8 data in std::string; thus I am limited to ASCII input (if I
> want libxml to behave).
You can store jpeg images in std::string if you like, the question is how you
interpret it. If you have a std::string called foo with utf-8 content you can do
Glib::ustring bar(foo);
to get a utf-8 aware string.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]