タグ

2011年8月4日のブックマーク (2件)

  • Unicode::Japanese::JA

    NAME Unicode::Japanese::JA - 日語文字コード変換 概要 use Unicode::Japanese; use Unicode::Japanese qw(unijp); # convert utf8 -> sjis print Unicode::Japanese->new($str)->sjis; print unijp($str)->sjis; # same as above. # convert sjis -> utf8 print Unicode::Japanese->new($str,'sjis')->get; # convert sjis (imode_EMOJI) -> utf8 print Unicode::Japanese->new($str,'sjis-imode')->get; # convert zenkaku (utf8) -> hank

    Unicode::Japanese::JA
    Kimura
    Kimura 2011/08/04
    [Unicode::Japanese]Unicode::Japaneseにある公式ドキュメント。日本語だからわかりやすい。でもここに書いていない機能があるんだよ。$s->set($str)->h2zKana->sjisとか
  • daily dayflower - 半角←→全角変換,Unicode::Japanese に未公開機能が…

    2008-10-21 追記 いまだに(ありがたいことですが)検索で飛んできたりブクマされたりというのがちょいちょいあるので,最新動向を書いておきます。 id:tokuhirom さんが Lingua::JA::Regular::Unicode という Pure Perl Module をリリースなさいました(→ http://d.hatena.ne.jp/tokuhirom/20081018/1224300947)。 あなたが作っているアプリで文字列まわりを Unicode::Japanese インスタンスですべて持ちたいわけでなければ(そして,たいていのばあい,持つ必要はないのですが),この Lingua::JA::Regular::Unicode を使うのがベターです。依存性もなく,とても軽量ですので。 2008-10-21 追記おわり ウェブアプリを作っていると,ユーザが入力した半角

    daily dayflower - 半角←→全角変換,Unicode::Japanese に未公開機能が…
    Kimura
    Kimura 2011/08/04
    [Unicode::Japanese]Unicode::Japaneseの詳しい使い方。podドキュメントで公開されていない機能まで書いてある。h2zKanaバンザイ