Frederick Cheung wrote in post #1029736:
>
> I'd start by checking that you are using the same encoding throughout
> the app (the encoding advertised to the browser, database connection
> encoding, encoding of the table/columns etc) or funny things will
> happen. For example if you try and insert invalid UTF8 content in a UTF8
> column (eg because it's actually Latin-1 text) MySQL will silently
> truncate it.
>
> Fred
I understand this idea. But if, for example, I have last_name = "tést"
and execute:
<%= f.text_field :last_name %>
results: t
<%= f.object.per_last_name %>
results: tést
So, I am not sure, but I think that encoding of page and database is ok.
But what do you think about it?
Ivan
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment