W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > April 2011

Encoding test (Re: Is this something for the primer?)

From: Ivan Herman <ivan@w3.org>
Date: Thu, 21 Apr 2011 10:11:57 +0200
Cc: Gregg Kellogg <gregg@kellogg-assoc.com>, W3C RDFWA WG <public-rdfa-wg@w3.org>
Message-Id: <DB8B685A-E1AB-4B52-ACEE-A4EB6BAB79E9@w3.org>
To: Manu Sporny <msporny@digitalbazaar.com>

Manu, Gregg,

I have added a new test, #215, to test the encoding issue.

1. If I look at the test under the xhtml heading, then it passes my implementation. Indeed, 


is returned with 

Content-Type: application/xhtml+xml

and the returned file includes

<?xml version="1.0" encoding="UTF-8"?>

For application/xhtml+xml I use an XML parser, which properly establishes the UTF-8 encoding and everything is fine.

2. If I look at the test under the html heading, then my implementation fails and I would expect all implementations fail. Indeed, with the present setup, with


the encoding is not returned as part of the HTTP heading, so any HTML5 parser would fall back on content sniffing and this will fail in this case.

Bottom line: Manu, you should set the server up in such a way that HTML5 files return the content encoding, too. Ie, it should say

Content-Type: text/html; charset=UTF-8

then at least part of the implementations should be able to establish the correct encoding...



Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Thursday, 21 April 2011 08:11:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:51 UTC