Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Mason/Plugin
README.textile
dist.ini

README.textile

Mason2の**.(mc,mi,mp)をuse utf8で書くためのプラグインです。
明示的にuse utf8しなくても、onになります。

結果のbodyはデフォルトで、encode(“utf8”, …)されます。

カスタマイズ例1

$m->output_encoding("x-utf8-docomo");

カスタマイズ例2

package MyCatalystApp::View::Mason;

use Moose;
extends qw(Catalyst::View::Mason2);

__PACKAGE__->config(
    output_encoding => "x-utf8-softbank",
);

http://stackoverflow.com/questions/5858596/how-to-make-mason-2-utf-8-clean

Something went wrong with that request. Please try again.