small medium large xlarge

Generic-user-small
23 Jul 2010, 10:15
Chris (1 post)

When I try to run the code in ‘Unicode support’ section. I got this error.

incompatible character encodings: UTF-8 and ASCII-8BIT

Extracted source (around line #16):

13: </table> 14: 15: <% form_for :person do |form| %> 16: New name: <%= form.text_field :name %> 17: <%= submit_tag “Add” %> 18: <% end %>

it seems like that the “form.text_field” can not accept a value with UTF-8 encode.

My system is Rails 2.3.8, Ruby 1.9.1, sqlite3 3.6.23.1

You must be logged in to comment