ruby1.9 encoding issues
To upgrade without any errors you should add this line at the top of all your ruby scripts:
# encoding: utf-8
otherwise it’ll throw SyntaxErrors: “invalid multibtyte char (US-ASCII)”
Also you should use mysql2 gem (or new versions of pg and sqlite-ruby) in your application, otherwise you’ll see:
Encoding::CompatibilityError: incompatible character encoding: UTF-8 and ASCII-8BIT
from:http://def-end.com/post/3065938198/ruby1-9-encoding-issues
沒有留言:
張貼留言