Re: libxml2 in gnome 1.4
- From: Vlad Harchev <hvv hippo ru>
- To: Havoc Pennington <hp redhat com>
- Cc: ERDI Gergo <cactus cactus rulez org>, James Henstridge <james daa com au>, GNOME hackers <gnome-hackers gnome org>
- Subject: Re: libxml2 in gnome 1.4
- Date: Fri, 23 Mar 2001 13:58:30 +0400 (SAMT)
On 22 Mar 2001, Havoc Pennington wrote:
>
> ERDI Gergo <cactus cactus rulez org> writes:
> > On Thu, 22 Mar 2001, James Henstridge wrote:
> >
> > > So this 1.x version will cause problems for programs that don't handle
> > > encodings correctly? I am sure there is a fair number of libxml1 programs
> > > that do something like this:
> > > grab text out of GtkEntry (or GtkText, or whatever)
> > > put text in xmlNode as content
> > > save XML file
> > > load XML file
> > > grab content of xmlNode
> > > put text in entry
> > >
> > > (which will work great for english, and quite often works for other
> > > locales).
> >
> > This is exactly my use case -- could you tell me what I should do between
> > steps 1 and 2, and 5 and 6?
> >
>
> Well, you have to call iconv() and also have configure.in hackery to
> find libiconv if you need it, I would guess.
>
> GLib 2.0 has functions g_locale_to_utf8() and g_locale_from_utf8(),
> maybe someone can come up with a canonical standalone version of those
> to be cut-and-pasted all over the place to deal with libxml.
Sorry for replying to this mail - I killed original letter.
There is libunicode (used by RedCarpet) that contains iconv wrapper and
fallback implementation and obviously g_locale_to_utf8() and
g_locale_from_utf8() analogs.
> Havoc
>
> _______________________________________________
> gnome-hackers mailing list
> gnome-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-hackers
>
Best regards,
-Vlad
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]