4
4

2 回答 2

3

I would try to implement something like this (following the lead from link from my comment):

<form action="<%= search_path %>" method="get" class="recherche" >
  <%= text_field_tag 'search[brand_contains]' %>
  <%= submit_tag "Rechercher", :name => nil %>
</form> 

if this will not work then please look at this question: removing "utf8=✓&quot; from rails 3 form submissions This might be helpful for you.

于 2011-09-02T16:00:51.167 回答
-1

Can you try adding the following line to environment.rb:

Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
于 2011-09-02T16:04:07.650 回答