Forum: Rails I18n Using ñ on rails 3

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
85458feac00c538a9689d43ee0f3c8d6?d=identicon&s=25 Tomas R. (josetomas_r)
on 2011-07-03 19:07
my es.yml looks like this

        password: "contraseña"

but when loading on my browser I get

invalid byte sequence in UTF-8
Extracted source (around line #12):

9:     <%= f.text_field :email %>
10:   </p>
11:   <p>
12:     <%= f.label :password %><br />
13:     <%= f.password_field :password %>
14:   </p>
15:   <p>

how can I get that to work
8d02e6d56f10ed772c172100c0afea72?d=identicon&s=25 Julio B. (julio_b)
on 2011-09-13 23:10
just put
#coding: utf-8
at the very first line of your file
This topic is locked and can not be replied to.