Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:52:14+00:00 2026-05-25T09:52:14+00:00

I have an issue in a search form with meta search : When I

  • 0

I have an issue in a search form with meta search :

When I submit my search form (method get) I have a 500 error because of the utf8=✓ param added by rails.

http://localhost:3000/items?utf8=✓&search[brand_contains]=levi

If I delete the check mark (✓) in the url and press enter it works well.

I use rails 3.0.9 and ruby 1.9.2.

I really don’t know how to fix this issue so if you have any suggestion I will be happy to hear them.
Thank you for your help.

Edit :

Here is my form :

 = form_for @search, :class => "recherche" do |f|
  = f.label :brand
  = f.text_field :brand_contains
  = f.submit "Rechercher"

And the error :

Started GET "/items?utf8=%E2%9C%93&search[brand_contains]=levi&commit=Rechercher" for 127.0.0.1  at 2011-09-02 17:39:39 +0200

ArgumentError (invalid byte sequence in US-ASCII):
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:52:15+00:00Added an answer on May 25, 2026 at 9:52 am

    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=✓" from rails 3 form submissions This might be helpful for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a issue, I have a form called quicksearch CODE <form method=GET name=quicksearch
I have a form that looks like: <form action=search.php method=post> <fieldset> <label for=level_one>Main category</label>
I have a small issue on a search form. PLease check this: http://www.fortisfitness.ca/test/script.php What's
I have a simple AS2 search form done in flash, the issue I'm seeing
I have this issue, I'm have a user selected in LDAP through ldap search,
HI all, I have an issue where i have to search rows in a
i have a search form where a user can search for certain fields in
We have a search form where the filter is bound to a property on
I have an issue with routes when i use this partial partial search <%
My function to implement the search is below. The issue I have is I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.