|
Re: Requiring charset parameter on +xml types?: msg#00012ietf.xml-mime
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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Requiring charset parameter on +xml types?: 00012, Martin J. Duerst |
|---|---|
| Next by Date: | Re: Requiring charset parameter on +xml types?: 00012, Rick Jelliffe |
| Previous by Thread: | Re: Requiring charset parameter on +xml types?i: 00012, Martin J. Duerst |
| Next by Thread: | Re: Requiring charset parameter on +xml types?: 00012, Rick Jelliffe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |