Instead of adding # coding: UTF-8
try to add # encoding: UTF-8
on the first line of the file.
It worked for me. I found the information here : http://groups.google.com/group/sinatrarb/browse_thread/thread/f92529bf0cf62015
More Related Contents:
- How do I replace accented Latin characters in Ruby?
- Explain like I'm LITERALLY five…what does it mean to "format" a string? [closed]
- Mysql2::Error::ConnectionError: Access denied for user
- Convert string to XXX
- Understanding the Rails Authenticity Token
- Rails :include vs. :joins
- What is the best method of handling currency/money?
- How to get a random number in Ruby
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- Installing Bootstrap 3 on Rails App
- Rails 4 Authenticity Token
- usage of attr_accessor in Rails
- Getting the warning “Insecure world writable dir /home/chance ” in PATH, mode 040777 for rails and gem
- Rails 3: alias_method_chain still used?
- How to test for (ActiveRecord) object equality
- What is the best way to seed a database in Rails?
- How does load differ from require in Ruby?
- Rails Browser Detection Methods
- Ruby on Rails – Access controller variable from model
- Where is the Rails method that converts data from `datetime_select` into a DateTime object?
- Regular expressions with validations in RoR 4
- AWS S3: The bucket you are attempting to access must be addressed using the specified endpoint
- “bin/rails: No such file or directory” w/ Ruby 2 & Rails 4 on Heroku
- Run a single migration file
- Rails Model, View, Controller, and Helper: what goes where?
- What to use instead of `render :text` (and `render nothing: true`) in rails 5.1 and later?
- Ruby on Rails Callback, what is difference between :before_save and :before_create?
- Get redirect of a URL in Ruby
- In Ruby on Rails, are ‘#encoding: utf-8’ and ‘config.encoding = “utf-8″‘ different?
- Why does adding “sleep 1” in an after hook cause this Rspec/Capybara test to pass?