Answer the question
In order to leave comments, you need to log in
How to set up Russian language in Ruby on Rails?
When entering a type string through the rails console, g = "Привет"
an invalid multibyte char (UTF-8) error pops up.
Through the site, too, Russian words are not added. How can I fix this? I put i18n, but for some reason nothing has changed. Tell me please.
Answer the question
In order to leave comments, you need to log in
# encoding: utf-8
at the very beginning of each file that uses Russian characters
When starting the application, set the environment variable RUBYOPT=-Ku
RUBYOPT=-Ku
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question