Re: How can I let pango/gtk support a new encoding like GBK/GB18030 and BIG5-HKSCS?
- From: Alex Larsson <alexl redhat com>
- To: James Su <suzhe gnuchina org>
- Cc: <gtk-i18n-list gnome org>
- Subject: Re: How can I let pango/gtk support a new encoding like GBK/GB18030 and BIG5-HKSCS?
- Date: Fri, 5 Oct 2001 14:23:07 -0400 (EDT)
On Sat, 6 Oct 2001, James Su wrote:
> Is there any documentation of how to support a new encoding in
> pango/gtk? I really want to use GBK/GB18030 and BIG5-HKSCS within pango/gtk.
> Does anybody can give me some suggestion?
> btw, GB18030 is a variable length encoding, which can be 1, 2 or 4 bytes
> for one code point.
Pango and Gtk+ 2 always uses unicode/UTF-8 internally. To convert to/from
the current locale it uses the libc iconv() function. If you add support
to the glibc iconv for the encodings it should work.
Hmm. "iconv -l" does list BIG5-HKSCS, BIG5HKSCS, GBK and GB18030. So it
might already work.
] [Thread Prev