On Monday 13 August 2007, Eyal Oren wrote:
> On 08/13/07/08/07 20:34 +0100, Richard Dale wrote:
> >When I retrieve text items from DBpedia with
spanish characters in them,
> > they are incorrect. The open-uri open() call in
the sparql.rb file
> > doesn't set the charset (the default is
"iso-8859-1"), and I tried
> > setting it to 'utf-8' in the header() method but
it didn't make any
> > difference. Has anyone had similar problems?
>
> I had problems with DBpedia's language-typed literals
as well, but thought
> it'd be a Virtuoso problem. But it could indeed also be
an ActiveRDF
> problem. Have you been able to run the same query with
curl and see what
> kind of stuff Virtuose returns (you can find the
encoded SPARQL query by
> running ActiveRDF in debug mode (export
ACTIVE_RDF_LOG_LEVEL=0))?
I tried the query with curl, and it was exactly the same.
But the snorql
explorer worked fine, and I looked at the javascript and
found it was using
json as a result format. So I tried a json result format
with curl and the
spanish word tambien was returned as 'tambiu00E9n' which is
the correct
unicode escape sequence. When I tried ActiveRDF with json it
worked fine too
and the Ruby string in the results has the correct spanish
characters as
utf-8.
-- Richard
_______________________________________________
ActiveRDF mailing list
ActiveRDF lists.deri.org
http
://lists.deri.org/mailman/listinfo/activerdf
|