Apache::GuessCharset - adds HTTP charset by guessing file's encoding
SetHandler perl-script PerlFixupHandler +Apache::GuessCharset # how many bytes to read for guessing (default 512) PerlSetVar GuessCharsetBufferSize 1024 # list of encoding suspects PerlSetVar GuessCharsetSuspects euc-jp PerlAddVar GuessCharsetSuspects shiftjis PerlAddVar GuessCharsetSuspects 7bit-jis
Apache::GuessCharset is an Apache fix-up handler which adds HTTP charset attribute by automaticaly guessing text files' encodings via Encode::Guess.
This module uses following configuration variables.
a list of encodings for Encode::Guess to check. See Encode::Guess for details.
Encode::Guess
specifies how many bytes for this module to read from source file, to properly guess encodings. default is 512.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Encode::Guess, Apache::File
To install Apache::GuessCharset, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::GuessCharset
CPAN shell
perl -MCPAN -e shell install Apache::GuessCharset
For more information on module installation, please visit the detailed CPAN module installation guide.