30. 1.8 require ‘kconv’
Kconv::kconv(" ",
Kconv::JIS, # to
Kconv::UTF8 # from
)
#=> "e$B;%KZe(B"
We must care about the
encoding of “ ”
1.9 " ".encode("ISO-2022-JP")
#=> "e$B;%KZe(B"
Ruby cares about the
encoding of “ ”
50. “Really nonsense, but I had a
quarrel with my girlfriend
because of a problem with
mobile phones.”
- Mr. A (20-year-old office worker, Tokyo)
…
20
http://www.j-cast.com/kaisha/2009/07/31046442.html