- From: Danny Ayers <danny.ayers@gmail.com>
- Date: Sat, 18 Mar 2006 17:02:30 +0100
- To: "dhansol LLC" <dhansol@gmail.com>
- Cc: www-rdf-validator@w3.org
On 3/18/06, dhansol LLC <dhansol@gmail.com> wrote:
> ERROR message for W3C:
> An attempt to load the RDF from URI
> 'http://www.dhansol.com/sitemap.rdf' failed. (Undecodable
> data when reading URI at byte 8368 using encoding 'UTF-8'. Please check
> encoding and encoding declaration of your document.)
The validator does appear to have a bug, or at least be inconsistent.
If you check with triples only rather than triples+graph you don't get
that message, just error messages relating to:
<rdf:bar1>bar1-value</rdf:bar1>
<rdf:bar2>bar2-value</rdf:bar2>
It might still be worth checking the tool with which you created the
file to make sure the encoding settings are set for utf-8 - e.g. text
editor settings (or using a different text editor).
Note also that the file is being served as media type text/plain, this
should really be application/rdf+xml. If you're running Apache then
you can put the following in httpd.conf:
<Directory /www/htdocs/wherever>
AddType application/rdf+xml .rdf
</Directory>
or put a .htaccess file on the server containing:
AddType application/rdf+xml .rdf
Cheers,
Danny.
--
http://dannyayers.com
Received on Saturday, 18 March 2006 16:02:34 UTC