[Bug 4474] Source Display (errors listing and show source) not transcoded

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4474

           Summary: Source Display (errors listing and show source) not
                    transcoded
           Product: Validator
           Version: 0.8.0b1
          Platform: All
               URL: http://www.cs.tut.fi/~jkorpela/test/val.html
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: check
        AssignedTo: ot@w3.org
        ReportedBy: ot@w3.org
         QAContact: www-validator-cvs@w3.org


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.

Received on Thursday, 19 April 2007 10:21:30 UTC