Catalyst-Controller-Mobile-JP

 view release on metacpan or  search on metacpan

lib/Catalyst/Controller/Mobile/JP.pm  view on Meta::CPAN

          $c->req->param('text') . "\x{E72A}"
      );
  }

=head1 DESCRIPTION

Catalyst::Controller::Mobile::JP works as a base controller
that automatically decode()/encode() with the recommended encoding
lead from values of UserAgent.

You can use unicode in your app that includes cross-carrier pictograms.

このモジュールは Catalyst::Controller で、SYNOPSIS にあるように使います。
C<begin> で C<< $c->req->params >> の Encode::decode()、C<end> で
C<< $c->res->body >> の Encode::encode() を行ないます。

エンコーディングは UserAgent の値を元に L<Encode::JP::Mobile> から
おすすめのものが利用されます(L<HTTP::MobileAgent::Plugin::Charset>)ので、
アプリケーション内部では特に意識せずキャリアをまたいだ絵文字を含む文字情報を
Unicode として扱うことができます。



( run in 0.403 second using v1.01-cache-2.11-cpan-88abd93f124 )