This project is archived and is in readonly mode.
Rails.root string conversion gives an ASCII string on Ruby 1.9.2
-
Santiago Pastorino
- State changed from new to invalid
- Importance changed from to Low
This is not a Rails thing.
Try the following➜ cat santiago.rb module Santiago def name 'Santiago' end end ➜ /tmp cat app.rb #encoding: UTF-8 require 'santiago' puts "#{Santiago.name}".encoding.name ➜ /tmp ruby -I. test2.rb "US-ASCII"Ruby encodes the string to match the magic comment when you define literal strings