Using ñ on rails 3


#1

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


#2

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