news feeds
David Dorward
david at dorward.me.uk
Tue Feb 7 12:38:43 GMT 2006
On Tue, Feb 07, 2006 at 12:26:49PM +0000, Simon Wistow wrote:
> Thirdly, Feedvalidator also says (perhaps spuriously) that the HTTP
> header should have the character encoding in it. There appears to be no
> way to turn this off in CGI.pm. Again, suggestions welcome although I'm
> not too worried about this one.
XML and character encoding is a bit of a mess. Specifying it in the
HTTP header is the best way to go.
print $cgi->header(-type => 'application/x.atom+xml; charset=utf-8');
Should do the trick (assuming you are using UTF-8).
--
David Dorward http://dorward.me.uk
More information about the london.pm
mailing list