-
-
21 Sep 2006 15:21:46 UTC
- Distribution: Catalyst-Plugin-Charsets-Japanese
- Module version: 0.06
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (622 / 168 / 0)
- Kwalitee
Bus factor: 1- 35.77% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (7.8KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst
- Jcode
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Plugin::Charsets::Japanese - Japanese specific charsets handler
SYNOPSIS
use Catalyst 'Charsets::Japanese'; # set charset MyApp->config->{charsets} = 'UTF-8'; # you can set two charsets. # one is for inner, another is for output response. MyApp->config->{charsets} = { in => 'EUC-JP', out => 'Shift_JIS', };
DESCRIPTION
Japanese usually use the charsets, UTF-8, EUC-JP, and Shift_JIS, when they develop web applications. This module allows you to deal with things related to Japanese charset automatically.
charsets
This plugin implements 'charsets' accessor to context object.
sub default : Private { my( $self, $c ) = @_; # charset's name. UTF-8, EUC-JP, Shift_JIS my $inner_charset = $c->charsets->in->name; # charset's abbreviation. utf8, euc, shiftjis my $inner_abbrev = $c->charsets->in->abbreviation; # Jcode method's name. utf8, euc, sjis my $inner_method = $c->charsets->in->method; # and you can get information about charset for output response. my $outer_charset = $c->charsets->out->name; }
SEE ALSO
Catalyst::Plugin::Charsets::Japanese::Nihongo.pod
AUTHOR
Lyo Kato <lyo.kato@gmail.com<gt>
COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Catalyst::Plugin::Charsets::Japanese, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Plugin::Charsets::Japanese
perl -MCPAN -e shell install Catalyst::Plugin::Charsets::Japanese
For more information on module installation, please visit the detailed CPAN module installation guide.