Monday 20 May 2013

How to resolve jcode (LoadError) with contacts gem in rails 3? change line 21 to:




Ruby >= 1.9 doesn't have jcode, a module to handle japanese (EUC/SJIS) strings, as it supports unicode natively.

So you will need to add: require 'jcode' if RUBY_VERSION < '1.9' to your gdata gem found under your .rvm directory somewhere similar to this:

/home/.rvm/gems/ruby-1.9.2-p0@your_gemset_name/gems/gdata-1.1.1/lib/gdata.rb
change line 21 to:

if RUBY_VERSION < '1.9'  require 'jcode'  $KCODE = 'UTF8'end

No comments:

Post a Comment