nkf(p1, p2) public

Convert str and return converted result. Conversion details are specified by opt as String.

   require 'nkf'
   output = NKF.nkf("-s", input)

Note By default, nkf decodes MIME encoded string. If you want not to decode input, use NKF.nkf with -m0 flag.

Show source
Register or log in to add new notes.