Re: New Chinese FAQ

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

>> ok, I'll fix the html tag problem ASAP.
>>
>
>I fixed the tag problem and it now verifies fine:
>
>
>http://validator.w3.org/check?uri=http%3A%2F%2Fwwwmaster.postgr
>esql.org%2Fdocs%2Ffaqs.FAQ_chinese.html&charset=gb2312+%28Chine
se%2C+simplified%29
>
>The only problem reported is that it says the encoding is incorrect for
>a large number of lines. The above encoding forces it to be
>gb2312. If
>I make it Unicode I get even more failures. However, I remember iconv
>doing the conversion to UTF8 just fine, so maybe something is
>wrong with
>how we are validating it.

The output should be UTF8, and it should autodetect it. The output from
the *website* should *not* validate as gb2312, because it is no longer
in that encoding.

The reason that's the only error you get may be that it doesn't validate
the document because of encoding errors. So this doesn't prove (or
disprove for that matter) that the tags are fixed.

>Anyway, the HTML is OK so it seems we just have encoding issue now.
>The current version in CVS is all fixed up so please submit updates
>based on that version. Thanks.

I'm sorry to say, but it's invalid characters in it again :-(
On svr2:
svr2# iconv -f gb2312 -t utf-8 FAQ_chinese.html >/dev/null
iconv: FAQ_chinese.html: cannot convert

On developer.pgadmin.org:
mha(at)developer:~/ext/faqs$ iconv -f gb2312 -t utf-8 FAQ_chinese.html -o
/dev/null
iconv: illegal input sequence at position 8182

Could it be cvs that messes the encoding up? Can you mail me the file as
you see it before you commit and I can see if that makes a difference?

//Magnus

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Weiping 2005-05-17 01:51:17 Re: New Chinese FAQ
Previous Message Brian Kilpatrick 2005-05-16 19:45:39 event submit error