= private = protected
toutf8()
Convert self to UTF-8
Note This method decode MIME encoded string and convert halfwidth katakana to fullwidth katakana. If you don’t want it, use NKF.nkf(’-wxm0’, str).
# File ext/nkf/lib/kconv.rb, line 327 def toutf8; Kconv.toutf8(self) end
require ‘kconv’
then
“中国人民很行”.toutf8