Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library kconv > module Kconv > kconv
kconv(str, out_code, in_code = Kconv::AUTO)
文字列 str のエンコーディングを out_code に変換したものを 返します。in_code も指定されていたら str のエンコーディングが in_code だとして動作します。
out_code in_code は定数で指定します。