12 messages in org.w3.public-evangelistRE: japanese encoding nightmare
FromSent OnAttachments
Paul ArensonNov 12, 2006 5:50 pm 
Karl DubostNov 13, 2006 5:21 am 
Paul ArensonNov 13, 2006 6:25 am 
Paul ArensonNov 13, 2006 6:58 am 
Daniel BarclayNov 13, 2006 10:14 am 
Mike SchinkelNov 13, 2006 3:10 pm 
David DorwardNov 13, 2006 3:17 pm 
Paul ArensonNov 13, 2006 6:06 pm 
Daniel BarclayNov 16, 2006 11:13 am 
Richard IshidaNov 23, 2006 2:15 am 
Tex TexinNov 23, 2006 9:03 am 
Paul ArensonDec 5, 2006 8:07 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: japanese encoding nightmareActions...
From:Richard Ishida (ish@w3.org)
Date:Nov 23, 2006 2:15:32 am
List:org.w3.public-evangelist

Paul, read this and let me know if you still have questions:

Changing (X)HTML page encoding to UTF-8 http://www.w3.org/International/questions/qa-changing-encoding

RI

============ Richard Ishida Internationalization Lead W3C (World Wide Web Consortium)

http://www.w3.org/People/Ishida/ http://www.w3.org/International/ http://people.w3.org/rishida/blog/ http://www.flickr.com/photos/ishida/

________________________________

From: publ@w3.org [mailto:publ@w3.org] On Behalf Of Paul Arenson Sent: 13 November 2006 01:51 To: publ@w3.org Cc: Paul Arenson Subject: japanese encoding nightmare

Hello

I came here via http://www.webstandards.org/learn/articles/askw3c/dec2002/

For a long time I have used Mozilla to create (or adapt other) web pages.

It has worked. I went back and was surprised that it worked DESPITE different encodings I inadvertantly used.

But recently tried to make pages that did NOT work!!!! Am not sure why. And so I am wriiting.

UNSUCCESSFUL EXAMPLE (Looks ok on desktop but not on server) http://tokyoprogressive.org/why.html

CODE <meta content="text/html; charset=UTF-8" http-equiv="content-type">

here are successful example from the past: - - - - - - - - - - - - -

SUCCESSFUL EXAMPLE ONE (JAPANESE COMES OUT RIGHT) http://www.tokyoprogressive.org/index/weblog/print/april-entries/

This was made via EXPRESSION ENGINE

I note I have both xml: lang and uft-8. I also note I am confused about differences between character encoding and language, but anyway, it works.

CODE <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <title>April entries</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

- - - - - - - - - - - - -

SUCCESSFUL EXAMPLE TWO http://tokyoprogressive.org/indexoct2006.html

THIS WAS MADE BY HAND USING a CSS TEMPLATE.

I THOUGHT I did this in UFT-8, but no. Mozilla even says it is UFT-8, but as you can see the code is western. In other words, why does it work?

CODE <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

- - - - - - - - - - - - -

SUCCESSFUL EXAMPLE THREE http://tokyoprogressive.org/indexnov2006.html Now here is one where I specified uft-8 and it too is ok!

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

SUCCESSUL EXAMPLE FOUR (most bizarre?) I even forgot to add the meta tag!!!

http://tokyoprogressive.org/ - - - - - - - - - - - - -

PROBLEMS STARTED APPEARING WITH NEW PAGES

EXPERIMENT:

Method

Make a page in several encodings http://tokyoprogressive.org/a.html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-2022-JP"

LOOKS OK ONLINE - - - - - - - - - - - - -

http://tokyoprogressive.org/b.html <meta content="text/html; charset=UTF-8" http-equiv="content-type"> DOES NOT LOOK OK ONLINE - - - - - - - - - - - - - http://tokyoprogressive.org/c.html <meta content="text/html; charset=Shift_JIS" http-equiv="content-type"> DOES NOT LOOK OK ONLINE - - - - - - - - - - - - - http://tokyoprogressive.org/d.html <meta content="text/html; charset=EUC-JP" http-equiv="content-type"> DOES NOT LOOK OK ONLINE - - - - - - - - - - - - -

CONCLUSION:

Can anyone tell me what is going on?

Thanks!

__/__/__/__/__/__/__/__/__/__/ Paul Arenson

EMAIL pa@tokyoprogressive.org

__/__/__/__/__/__/__/__/__/__/