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
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
Depends on:
Reported: 2007-04-19 10:21 UTC by Olivier Thereaux
Modified: 2007-05-18 00:55 UTC (History)
0 users

See Also:


Description Olivier Thereaux 2007-04-19 10:21:28 UTC
Reported by Jukka Korpela in

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:

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, 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
broke more things than it fixed.

I eventually found out about the mistake and fixed in

keeping FIXED.