chaitanyabm / gdata-ruby-util

Automatically exported from code.google.com/p/gdata-ruby-util
Apache License 2.0
0 stars 0 forks source link

support ruby 1.9 #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
without requiring jcode and $KCODE.

Original issue reported on code.google.com by tadatada...@gmail.com on 5 Apr 2012 at 6:46

Attachments:

GoogleCodeExporter commented 8 years ago
Probably more efficient way:
if RUBY_VERSION < '1.9'
  require 'jcode'
  $KCODE = 'UTF8'
end

Original comment by otche...@gmail.com on 17 Apr 2012 at 9:48

GoogleCodeExporter commented 8 years ago
It isn't cool using RUBY_VERSION...

Original comment by tadatada...@gmail.com on 17 Apr 2012 at 10:42