This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 806 - Cannot display Japanese characters
Summary: Cannot display Japanese characters
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 1.0 (show other bugs)
Version: CSS Validator
Hardware: Other Linux
: P2 major
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-18 21:39 UTC by IKEDA Katsumi
Modified: 2005-12-13 14:02 UTC (History)
0 users

See Also:


Attachments

Description IKEDA Katsumi 2004-06-18 21:39:58 UTC
On Japanese environment CSS Validator sends invalid text.
See the following, please.
 ================================================================
$ LANG=C wget -S --header='Accept-Language: ja'
--referer=http://www013.upp.so-net.ne.jp/ikeda/en/index.html
http://jigsaw.w3.org/css-validator/check/referer
--10:19:50--  http://jigsaw.w3.org/css-validator/check/referer
           => `referer'
Resolving jigsaw.w3.org... done.
Connecting to jigsaw.w3.org[138.96.249.65]:80... connected.
HTTP request sent, awaiting response... 
 1 HTTP/1.1 200 OK
 2 Cache-Control: no-cache
 3 Date: Sat, 19 Jun 2004 01:19:50 GMT
 4 Pragma: no-cache
 5 Content-Language: ja
 6 Content-Type: text/html;charset=euc-jp
 7 Expires: Sun, 20 Jun 2004 01:19:50 GMT
 8 Server: Jigsaw/2.2.2 W3C_CSS_Validator_JFouffa/2.0

    [  <=>                                ] 9,276         26.80K/s

10:19:52 (26.80 KB/s) - `referer' saved [9276]

$ kcc -c referer 
referer:	ASCII
================================================================

There are two problems.
  1. A Return message is broken. It is invalid text code.
  2. A Return message does not specify Content-Type.

Thaks.
Comment 1 Olivier Thereaux 2004-06-28 21:15:08 UTC
Reproducible - OK.

wget output in the bug report is misleading, here's what HEAD has to say:

HEAD -H 'Accept-Language: ja' "http://jigsaw.w3.org/css-validator/validator?
uri=http%3A%2F%2Fwww.w3.org%2F&usermedium=all"
200 OK
Cache-Control: no-cache
Connection: close
Date: Tue, 29 Jun 2004 01:11:12 GMT
Pragma: no-cache
Server: Jigsaw/2.2.4
Content-Language: ja
Content-Length: 21669
Content-Type: text/html
Client-Date: Tue, 29 Jun 2004 01:11:13 GMT
Client-Peer: 138.96.249.65:80
Client-Response-Num: 1

(not sure where wget gets its "Content-Type: text/html;charset=euc-jp")
Comment 2 IKEDA Katsumi 2004-06-28 22:01:50 UTC
If I write <a
href="http://jigsaw.w3.org/css-validator/validator?uri=http://www013.upp.so-net.ne.jp/ikeda/en/index.html">,
 
it returns a valid Japanese result.
If I write <a href="http://validator.w3.org/check/referer">,
it returns an invalid Japanese result.
All Japanese characters are translated into "??".
If it returns English or something readable, I will be happy...
This problem happens on Mozilla, Galeon, Lynx and so on.
I tried using wget and thought that it depends on the server response but web
browsers.
Data wget got was already broken.
Thanks,

P.S.
  <a href="http://validator.w3.org/check/referer"> works well.
  It alwalys returns English.
Comment 3 Yves Lafon 2005-08-26 15:15:14 UTC
Fixed, see http://qa-dev.w3.org:8001/css-validator/
Comment 4 IKEDA Katsumi 2005-12-13 14:02:50 UTC
Sorry for too late reply.

I test CSS Validator with some Japanese web sites. It works well.
Thaks.

P.S.
Sorry that "Severity" level in my first post was off the point.