Blogged by Ujihisa. Standard methods of programming and thoughts including Clojure, Vim, LLVM, Haskell, Ruby and Mathematics written by a Japanese programmer. github/ujihisa Assume that your vimrc has the following settings. set encoding=utf-8 set termencoding=utf-8 set fileencodings=ucs-bom,euc-jp,cp932,iso-2022-jp If you write the following phrase and save it, カナサンスゴイ and then you will see a baf
NAME Encode::JP::Mobile - 日本の携帯電話向け Shift_JIS (CP932) / UTF-8 エンコーディング SYNOPSIS use Encode; use Encode::JP::Mobile; my $bytes = "\x82\xb1\xf9\x5d\xf8\xa0\x82\xb1"; # NTT DoCoMo 絵文字を含んだ Shift_JIS バイト列 my $chars = decode("x-sjis-imode", $bytes); # \x{3053}\x{e6b9}\x{e63f}\x{3053} use Encode::JP::Mobile ':props'; if ($chars =~ /\p{InDoCoMoPictograms}/) { warn "It has DoCoMo pictogram characters!"; }
I can find many Ruby codes which use String#force_encoding . But most of them are wrong. You should not use the method. Ruby 1.9 Era In this year, the first release of Ruby 1.9 series was shipped. And I will soon release Ruby 1.9.1-p376. 2009 was the year of Ruby 1.9. In the next year, Ruby 1.9.2 will be released. It will be completely compatible with Rails 3. It also completely pass to RubySpec a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く