Re: Requiring charset parameter on +xml types?

[email protected]
Newsgroups gmane.ietf.xml-mime
Message-ID <[email protected]>
Martin,

> - For text/html+xml (and that would work for all types, actually),
>    beef up the servers so that they can use the information in the
>    file to set the charset parameter correctly.

Matt Sergeant has already implemented a Perl module "Apache::MimeXML".  
Let's encourage such implementation efforts!

http://www.cpan.org/modules/by-module/Apache/Apache-MimeXML-0.08.readme

> NAME
>     Apache::MimeXML - mod_perl mime encoding sniffer for XML files
> 
> SYNOPSIS
>     Simply add this line to srm.conf or httpd.conf:
> 
>       PerlTypeHandler +Apache::MimeXML
> 
>     Alternatively add it only for certain files or directories using
>     the standard Apache methods. There is about a 30% slowdown for
>     files using this module, so you probably want to restrict it to
>     certain XML locations only.
> 
> DESCRIPTION
>     An XML Content-Type sniffer. This module reads the encoding
>     attribute in the xml declaration and returns an appropriate
>     content-type heading. If no encoding declaration is found it
>     returns utf-8 or utf-16 depending on the specific encoding.


Cheers,

IBM Tokyo Research Lab &
International University of Japan, Research Institute

MURATA Makoto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.