Ruby On Rails and UTF-8
Posted
by Semyon Perepelitsa
on Stack Overflow
See other posts from Stack Overflow
or by Semyon Perepelitsa
Published on 2010-05-04T09:14:23Z
Indexed on
2010/05/04
9:18 UTC
Read the original article
Hit count: 283
ruby-on-rails
|ruby
I have an Rails application with SayController
, hello
action and view template say/hello.html.erb
. When I add some cyrillic character like "?", I get an error:
ArgumentError in SayController#hello
invalid byte sequence in UTF-8
Headers:
{"Cache-Control"=>"no-cache",
"X-Runtime"=>"11",
"Content-Type"=>"text/html; charset=utf-8"}
I use Windows 7 x64, Ruby 1.9.1p378, Rails 2.3.5, WEBrick server.
© Stack Overflow or respective owner