Forum: Rails I18n Using ñ on rails 3

Posted by Tomas R. (josetomas_r)
on 2011-07-03 19:07
my es.yml looks like this

es:
    attributes:
      user:
        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
Posted by Julio B. (julio_b)
on 2011-09-13 23:10
just put
#coding: utf-8
at the very first line of your file
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.