Files encoded in UTF-8

Hi!

I set SiController file to utf-8 encoding and rails gave me this
error.

I stumbled on an article about converting rails app to use utf-8, but
I didn’t try it, because I created a single controller for testing
“rails new gold”, “rails generate controller Si index”, “rails
server”, went to localhost:3000 and it works if controller file is
encoded in ansi, and doesn’t work if encoded in utf-8.
The article

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs