method

nkf

v1_8_7_330 - Show latest stable - Class: NKF
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.