You can either:
- set your RUBYOPT environment variable to “-E utf-8”
- or use https://github.com/m-ryan/magic_encoding
More Related Contents:
- Is there any difference between the `:key => “value”` and `key: “value”` hash notations?
- ruby 1.9: invalid byte sequence in UTF-8
- Is Hash Rocket deprecated?
- What is the difference between Ruby 1.8 and Ruby 1.9
- Ruby: require vs require_relative – best practice to workaround running in both Ruby =1.9.2
- How does the magic comment ( # Encoding: utf-8 ) in ruby work?
- Ruby 1.9 Array.to_s behaves differently?
- What are the benefits of the new hash syntax in Ruby 1.9?
- How to determine if a character is a Chinese character
- How to convert Time format in ruby
- Regex for reverse match a string
- Ruby, Difference between exec, system and %x() or Backticks
- What is the difference or value of these block coding styles in Ruby?
- rvm installation not working: “RVM is not a function”
- How to understand symbols in Ruby
- Ruby array access 2 consecutive(chained) elements at a time
- What does &. (ampersand dot) mean in Ruby?
- Should Gemfile.lock be included in .gitignore?
- Get names of all files from a folder with Ruby
- Unresolved specs during Gem::Specification.reset:
- Extract a substring from a string in Ruby using a regular expression
- How to convert a string to a constant in Ruby?
- How can I clear the terminal in Ruby?
- What is the difference between Raising Exceptions vs Throwing Exceptions in Ruby?
- List of installed gems?
- How can I find the number of days between two Date objects in Ruby?
- What are those pipe symbols for in Ruby?
- Ruby’s yield feature in relation to computer science
- Why isn’t current directory on my Ruby path? [duplicate]
- Iterate over Ruby Time object with delta