toutf8() public

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).

Show source
Register or log in to add new notes.
April 2, 2013
0 thanks

you need kconv

require ‘kconv’

then

“中国人民很行”.toutf8