Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library nkf > module NKF > guess2
guess2(str)
nkf2の漢字コード自動判定ルーチンを利用したものです。