Re: New Chinese FAQ

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "PostgreSQL www" <pgsql-www(at)postgresql(dot)org>, <zhouqq(at)cs(dot)toronto(dot)edu>, <laser(at)qmail(dot)zhengmai(dot)net(dot)cn>
Subject: Re: New Chinese FAQ
Date: 2005-05-11 15:23:38
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C7481@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

> > .. but fixing that brings up another problem. The installation on
> > wwwmaster doesn't support gb_2312-80. It's the standard GNU
> iconv on
> > freebsd (AFAIK), it needs to be one of the charsets supported by it.
> > (The scripts converts it to UTF-8 for presentation inside our
> > framework)
> >
> > (iconv -l should bring it up, if you need it I can send a list of
> > available encodings)
>
> Here's what I see on our FreeBSD server:
>
> $ iconv -l|grep -i 2312
> CHINESE GB_2312-80 ISO-IR-58 CSISO58GB231280
> CN-GB EUC-CN EUCCN GB2312 CSGB2312
> HZ HZ-GB-2312
>
> I see "GB2312". What does the "-80" mean in "gb_2312-80"?
> Can we just remove the "-80"?

Hmm. Weird. Mine also shows gb_2312-80 :-) I guess I jumped the gun a
bit.

Ok. Checking further, it seems the file contains characters that are not
gb_2312-80. Try a simple:
iconv -f gb_2312-80 -t utf-8 FAQ_chinese.html > /dev/null

and it'll show you an error.

Whereas:
iconv -f euc-jp -t utf-8 FAQ_japanese.html > /dev/null

works just fine.

//Magnus

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Robert Treat 2005-05-11 15:45:27 Re: [PATCHES] Where is Translation of "FARSI" FAQ?
Previous Message Bruce Momjian 2005-05-11 15:02:10 Re: New Chinese FAQ