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 4474 - Source Display (errors listing and show source) not transcoded
Summary: Source Display (errors listing and show source) not transcoded
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.8.0b1
Hardware: All All
: P2 blocker
Target Milestone: 0.8.0
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://www.cs.tut.fi/~jkorpela/test/v...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-19 10:21 UTC by Olivier Thereaux
Modified: 2007-05-18 00:55 UTC (History)
0 users

See Also:


Attachments

Description Olivier Thereaux 2007-04-19 10:21:28 UTC
Reported by Jukka Korpela in
http://lists.w3.org/Archives/Public/www-validator/2007Apr/0077.html


When testing a page in ISO-8859-1 encoding, the echo of a source line in an error message has the non-ASCII characters replaced by malformed data, displayed by IE 7 as small rectangles, by Firefox 2 as U+FFFD (a white question mark in a black lozenge)

Test page: http://www.cs.tut.fi/~jkorpela/test/val.html

The reason is apparently that the beta version echoes the source line "as is", even though the source is ISO-8859-1 encoded and the validator's report page is UTF-8 encoded.

This doesn't happen in the production version validator.w3.org, which seems to convert the source to UTF-8 before echoing it.
Comment 2 Olivier Thereaux 2007-05-18 00:55:23 UTC
Looks like my fix in 
http://lists.w3.org/Archives/Public/www-validator-cvs/2007Apr/0159.html
broke more things than it fixed.

I eventually found out about the mistake and fixed in 
http://lists.w3.org/Archives/Public/www-validator-cvs/2007May/0064.html

keeping FIXED.