I have just been experimenting with a Rails 3 project running under Ruby 1.9.1. I installed feedtools with bundler then
encountered the following errors when trying to run "rake -T" in my project directory:
rake aborted!
/Users/Tim/.bundle/gems/feedtools-0.2.29/lib/feed_tools/helpers/uri_helper.rb:44: invalid multibyte char (US-ASCII)
/Users/Tim/.bundle/gems/feedtools-0.2.29/lib/feed_tools/helpers/uri_helper.rb:44: invalid multibyte char (US-ASCII)
/Users/Tim/.bundle/gems/feedtools-0.2.29/lib/feed_tools/helpers/uri_helper.rb:44: syntax error, unexpected $end, expecting
')'
if IDN::Idna.toASCII('http://www.詹姆斯.com/') ==
^
I have been able to fix this by adding a magic comment to the first line of uri_helper.rb with the following contents:
# encoding: UTF-8 |