I am trying to get special characters print correctly in a vsp page.
I am accessing RDF Literals. If I access them through JDBC
and generate web-pages the output is as I expect.

But outputting the value of a "sparql select" in a vsp page by a
http_value
call doesn't seem to use utf-8 encoding. I add the vsp source below.

Any suggestions?


Thanks,

Lourens
---------------------------------------------

<HTML>
  <HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <TITLE>testproc</TITLE>
  </HEAD>
  <BODY>

<h1>Test Proc v1</h1>

<p>Some UTF-8 text:Magazijn De Bijenkorf
<p>
<?vsp
   set http_charset='UTF-8';

   declare _uri varchar;
   _uri := 'http://goo.kb.nl/gtt/138903166';
   FOR (sparql select ?v1_lab 
        where {`iri(?:_uri)` skos:prefLabel ?v1_lab})
        DO {
        http_value("v1_lab");
   }
?>
</BODY>
</HTML>

Reply via email to