RailsCasts Pro episodes are now free!

Learn more or hide this

devwout's Profile

GitHub User: devwout

Comments by

Avatar

It is possible to get around the encoding issues for csv-formatted excel files: use UTF-16 little endian encoding (with a byte order mark).

ruby
BOM = "\377\376"
BOM + Iconv.conv('utf-16le', 'utf8', data)
Avatar

Putting a RUBY_PLATFORM condition in the Gemfile is not a good idea. When installing an application bundle on the production server (different platform) with the --deployment or --frozen option, bundler will complain that the Gemfile does not match the Gemfile.lock.

However, I don't see an alternative right now...