Using ñ on rails 3

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:


11:


12: <%= f.label :password %>

13: <%= f.password_field :password %>
14:


15:

how can I get that to work

just put
#coding: utf-8
at the very first line of your file

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