Re: New Chinese FAQ
От | Magnus Hagander |
---|---|
Тема | Re: New Chinese FAQ |
Дата | |
Msg-id | 6BCB9D8A16AC4241919521715F4D8BCE6C7481@algol.sollentuna.se обсуждение исходный текст |
Ответ на | New Chinese FAQ (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: New Chinese FAQ
|
Список | 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
В списке pgsql-www по дате отправления: