Hello, At 12:43 23.07.2000 +0000, Oliver Frommel wrote:
When I change the XML encoding type to ISO-8859-1 the problem still persists. I suspect that Zope silently sets the encoding type to something different. My DTML method looks like this:
<dtml-call "RESPONSE.setHeader('Content-Type', 'text/rdf')"> <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd"> <rss version="0.91">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/">
<channel> ... </rdf:RDF>
when I try to change the dtml-call to set the charset to ISO-8859-1 Zope produces the "<html><head></head>" sequence again. Any ideas on how to solve this problem?
Here is the code I use on a Squishdot server containing french text (with accents) which works fine: ----------------------------------------------- <dtml-call "RESPONSE.setHeader('content-type', 'text/rdf')"><?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd" > <rss version="0.91"> <channel> <title><dtml-var "striptags(rss_title)" ></title> <language>fr</language> <link><dtml-var site_url></link> <description><dtml-var "striptags(rss_description)"></description> ..... </channel> </rss> -------------------------------------------------- I believe an important point is to have the first line containing the <dtml-call> and the <?xml> tags, without a line brake. This is used on a 2.1.6 server with Squishdot 0.3.2. Best regards, Gérard Métrailler Jr. Meeting Maker Inc. ... the intelligent choice for collaborative scheduling Email: webmaster@meetingmaker.com Web: http://www.meetingmaker.com
participants (1)
-
Gerard Metrailler Jr.