In Ruby 1.8.7, you can convert like this:
require "kconv" # line, destination encoding, source encoding Kconv.kconv(line,NKF::UTF8,NKF::UTF16)
Δ
0 Responses to “ruby convert between encodings”