Mojolicious::Plugin::Charset - Charset plugin
# Mojolicious $app->plugin(Charset => {charset => 'Shift_JIS'}); # Mojolicious::Lite plugin Charset => {charset => 'Shift_JIS'};
Mojolicious::Plugin::Charset is a plugin to easily set the default charset and encoding on all layers of Mojolicious.
The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it.
See "PLUGINS" in Mojolicious::Plugins for a list of plugins that are available by default.
Mojolicious::Plugin::Charset supports the following options.
# Mojolicious::Lite plugin Charset => {charset => 'Shift_JIS'};
Application charset.
Mojolicious::Plugin::Charset inherits all methods from Mojolicious::Plugin and implements the following new ones.
$plugin->register(Mojolicious->new, {charset => 'Shift_JIS'});
Register hook "before_dispatch" in Mojolicious in application and change a few defaults.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.