22
Aug
11

ruby convert between encodings



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”



  1. Leave a Comment

Leave a comment


Blog Stats

  • 281,565 hits