#260: Character encoding is not specified for RDF content ------------------------+--------------------------------------------------- Reporter: inigo | Owner: Nobody Type: defect | Status: new Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Keywords: ------------------------+--------------------------------------------------- The XML version declaration is:
<?xml version="1.0"?>
for the RDF - so the character encoding will default to UTF-8. This is not correct for sites that are using ISO-8859-1.
#260: Character encoding is not specified for RDF content ------------------------+--------------------------------------------------- Reporter: inigo | Owner: Nobody Type: defect | Status: new Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: | ------------------------+---------------------------------------------------
Comment(by inigo):
Looks like this can be fixed by altering the first line of rdf_index.tt and node_rdf.tt to:
<?xml version="1.0" encoding="[% config.http_charset %]" ?>
(not tested, yet...)
#260: Character encoding is not specified for RDF content ------------------------+--------------------------------------------------- Reporter: inigo | Owner: Nobody Type: defect | Status: new Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: Keywords: | ------------------------+---------------------------------------------------
Comment(by inigo):
For this to work, emit_rdfxml in RDF.pm needs to have config => $config, added to its %tt_vars.
It's also nicer to use:
?xml version="1.0" [%- IF config.http_charset %]encoding="[% config.http_charset %]"[%- END %]?>
to cope if the charset isn't provided.
#260: Character encoding is not specified for RDF content ------------------------+--------------------------------------------------- Reporter: inigo | Owner: Nobody Type: defect | Status: closed Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: fixed Keywords: | ------------------------+--------------------------------------------------- Changes (by dom):
* status: new => closed * resolution: => fixed
Comment:
(In [1232]) Fix RDF encoding (fixes #260); thanks Inigo
openguides-tickets@lists.openguides.org