Hi,

VOS seems to be incorrectly encoding UTF-8 string to XML and RDF/XML (HTML 
output is fine). I found a similar bug report in [1], but according to the 
changelogs this issue should have been fixed in v6.1.4.  

I'm using v6.1.6 for windows 32bit (binary from sourceforge):
$ virtuoso-t -?
Virtuoso Open Source Edition (multi threaded)
Version 6.1.6.3127-threads as of Aug 2 2012
Compiled for Win32 (i686-generic-win-32)
Copyright (C) 1998-2012 OpenLink Software

and my virtuoso.ini sets:
Charset                         = UTF-8
and
SQL_UTF8_EXECS                  = 1

I tried loading this minimal example:

Data:
<http://data.logainm.ie/place/14527> <http://xmlns.com/foaf/0.1/name> "Árainn 
Mhór"@ga .


$ curl  -H "Accept: text/html" 
"http://localhost/sparql?default-graph-uri=http://data.logainm.ie/&query=SELECT+*+WHERE+\{<http://data.logainm.ie/place/14527>+?p+?o\}"
<table class="sparql" border="1">
  <tr>
    <th>p</th>
    <th>o</th>
  </tr>
  <tr>
    <td>http://xmlns.com/foaf/0.1/name</td>
    <td>"Árainn Mhór"@ga</td>
  </tr>
</table>


$ curl  -H "Accept: application/rdf+xml" 
"http://localhost/sparql?default-graph-uri=http://data.logainm.ie/&query=SELECT+*+WHERE+\{<http://data.logainm.ie/place/14527>+?p+?o\}"
<rdf:RDF xmlns:res="http://www.w3.org/2005/sparql-results#"; 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
<rdf:Description rdf:nodeID="rset">
<rdf:type rdf:resource="http://www.w3.org/2005/sparql-results#ResultSet"; />
    <res:resultVariable>p</res:resultVariable>
    <res:resultVariable>o</res:resultVariable>
    <res:solution rdf:nodeID="r0">
      <res:binding rdf:nodeID="r0c0"><res:variable>p</res:variable><res:value 
rdf:resource="http://xmlns.com/foaf/0.1/name"/></res:binding>
      <res:binding rdf:nodeID="r0c1"><res:variable>o</res:variable><res:value 
xml:lang="ga">Árainn Mhór</res:value></res:binding>
    </res:solution>
  </rdf:Description>
</rdf:RDF>

However DESCRIBE queries seem fine:

$ curl -H "Accept: application/rdf+xml" 
"http://localhost/sparql?default-graph-uri=http://data.logainm.ie/&query=DESCRIBE+<http://data.logainm.ie/place/14527>"
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
        xmlns:foaf="http://xmlns.com/foaf/0.1/"; >
  <rdf:Description rdf:about="http://data.logainm.ie/place/14527";>
    <foaf:name xml:lang="ga">Árainn Mhór</foaf:name>
  </rdf:Description>
</rdf:RDF>


Thanks for any help, best regards
--
Nuno Lopes


[1] https://github.com/openlink/virtuoso-opensource/issues/17
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to