Apache-DefaultCharset

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      # or print "default charset is $charset"; will do (overload)
      $charset->name('euc-jp');

DESCRIPTION
    Apache::DefaultCharset is an XS wrapper for Apache Core's
    "AddDefaultCharset" configuration.

EXAMPLES
  Unicode Handling

    Suppose you develop multi-language web application, and transparently
    decode native encodings into Unicode string inside Perl (5.8 or over
    would be better). First you should add

      AddDefaultCharset euc-jp

    in your "httpd.conf", then leave off "send_http_header" arguments just
    to text/html. Then you can get the current configuration with this
    module when you use "Encode" or "Text::Iconv" to decode the HTTP request
    query into Unicode.

lib/Apache/DefaultCharset.pm  view on Meta::CPAN


=head1 DESCRIPTION

Apache::DefaultCharset is an XS wrapper for Apache Core's
C<AddDefaultCharset> configuration.

=head1 EXAMPLES

=head2 Unicode Handling

Suppose you develop multi-language web application, and transparently
decode native encodings into Unicode string inside Perl (5.8 or over
would be better). First you should add

  AddDefaultCharset euc-jp

in your C<httpd.conf>, then leave off C<send_http_header> arguments
just to text/html. Then you can get the current configuration with
this module when you use C<Encode> or C<Text::Iconv> to decode the HTTP
request query into Unicode.



( run in 0.472 second using v1.01-cache-2.11-cpan-a1d94b6210f )