Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Japanese and Web pages



>>>>> "Andy" == Andrew S Howell <andy@example.com> writes:

    Andy> Hello,

    Andy> 	I'm trying to figure out how Japanese works with web
    Andy> pages. I have two pages I've created using mule to
    Andy> html-ify existing documents. Netscape fails to auto-detect
    Andy> one of them, but is fine on the other. The one that works,
    Andy> jconv reports is New-JIS, while the one that does not
    Andy> work, is reported as Shift-JIS. Simple, I thought, just
    Andy> use jconv to convert the Shift-JIS one to New-JIS. Did
    Andy> that, but now the Netscape can't make sense of it no
    Andy> matter what I set the Document-Encoding to.

What Netscape are you using?  Linux?  What version?  I have not been
real happy with its Japanese support in general, but that could be my
own problem.

Can you read the (converted) new one with Mule OK?  If not, maybe it's
one of the rare documents that jconv and nkf screw up on autodetecting
(it's possible for their algorithms to get confused between EUC and
S-JIS).  If so, try setting the input encoding explicitly (I think the 
switch is "jconv -is -oj").

If it's only partly mojibake, then maybe Netscape got confused about
embedded angle brackets.  I don't think Netscape is very smart about
them; I know that paragraphs <P> in Japanese text occasionally get
munged and I've seen Japanese text simply disappear when "<" is part
of a JISX-0208 character.  I believe that this is due to the DTD for
HTML which probably did not consider Japanese carefully.

    Andy> Any ideas? Are there any FAQs that would help?

Ken Lunde's CJK.txt which can be found on any O'Reilly mirror is most
likely to be helpful, but I don't know if he has Netscape/HTML on his
mind.

Steve

-- 
                           Stephen John Turnbull
University of Tsukuba                                        Yaseppochi-Gumi
Institute of Policy and Planning Sciences  http://turnbull.sk.tsukuba.ac.jp/
Tennodai 1-1-1, Tsukuba, 305 JAPAN                 turnbull@example.com
-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links