You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tatsuhiko Miyagawa <mi...@edge.co.jp> on 2002/05/03 15:31:55 UTC

[ANNOUNCE] Apache::GuessCharset

Apache::GuessCharset is a PerlFixupHandler to demonstrate bleeding
edge perl's powerful encoding detection, thanks to Encode module.

It's now going on its way to CPAN, or also on
http://bulknews.net/lib/archives/

NAME
    Apache::GuessCharset - adds HTTP charset by guessing file's encoding

SYNOPSIS
      PerlModule Apache::GuessCharset
      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

DESCRIPTION
    Apache::GuessCharset is an Apache handler which adds HTTP charset
    attribute by automaticaly guessing file' encodings via Encode::Guess.

CONFIGURATION
    This module uses following configuration variables.

    GuessCharsetSuspects
        a list of encodings for "Encode::Guess" to check. See the
        Encode::Guess manpage for details.

    GuessCharsetBufferSize
        specifies how many bytes for this module to read from source file,
        to properly guess encodings. default is 512.

AUTHOR
    Tatsuhiko Miyagawa <mi...@bulknews.net>

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

SEE ALSO
    the Encode::Guess manpage, the Apache::File manpage




-- 
Tatsuhiko Miyagawa <mi...@edge.co.jp>