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

  • SEARCH
  • Home
  • 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 223803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:15:22+00:00 2026-05-11T19:15:22+00:00

On my site, an encoded quote (%22) in url path causes Illegal characters in

  • 0

On my site, an encoded quote (%22) in url path causes “Illegal characters in path” error

I want specify search URLs like so:

http://www.site.com/search/%22Vitamin+C%22

%22 is an encoded quotation mark “

I’m using a Asp.Net URL Routing and the route is specified like this: “search/{searchTerm}”

When Context["searchTerm"] is retrieved and Decoded, it would result in the above example being: “Vitamin+C” [including quotes]

It would seem that Asp.Net thinks that the there are illegal characters in the URL. I don’t understand why, when I AM URLEncoding the text.

How can I encode Quotation marks without Asp.Net complaining? Many people will use quotation marks to group words together and I want to allow this “smart searching”

  • 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-11T19:15:22+00:00Added an answer on May 11, 2026 at 7:15 pm

    For free-form search terms, you should use a QueryString parameter instead of a URL chunk. If you have structured searches (a limited list of categories with names that conform to valid URL requirements or search by zip codes) then you could use the URL structure you are using without issue. You can encode and put whatever you want, including quotes, in the querystring parameter.

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

Sidebar

Related Questions

The following rule works (successfully redirects) for urls like: www.site.com/some/path But doesn't work (404)
On my site I'm sending a Location header with UTF-8 encoded Unicode data like
Site in question: http://www.sedulity.tk/ Site using Chrome 19 dev: Site using IE9: as you
my site www.theprinterdepo.com its a magento oscommerce site As you know its open source,
I've encoded a few videos on http://www.theparkerpalmsprings.com to play using HTML5 when loaded via
I have a site that treats / and %2F in the path portion (not
I am having a HTML site declared and encoded as UTF-8. My Javascript sources
here is the site : http://www.notrepanorama.com at the bottom left, i use a jquery
On my site we have thousands of documents that we want to serve using
I am putting together a multilingual site according to the tutorial: http://nuts-and-bolts-of-cakephp.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalization-and-localization/ However, the

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.