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 7401567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:30:23+00:00 2026-05-29T04:30:23+00:00

http://www.w3schools.com/tags/ref_urlencode.asp Since URLs often contain characters outside the ASCII set, the URL has to

  • 0

http://www.w3schools.com/tags/ref_urlencode.asp

Since URLs often contain characters outside the ASCII set, the URL has
to be converted into a valid ASCII format.

But both space, /, % are part of the ASCII character set, so why encode them in the first place? What characters should be encoded?

  • 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-29T04:30:24+00:00Added an answer on May 29, 2026 at 4:30 am

    As noted, spaces are not valid in URLs. Most browsers orlencode them automatically. However…

    The page you linked to has an example using the word “Günter” in the “Try me” section. If the word “Günter” were sent as a querystring parameter, it wouldn’t work. as the “ü” is not in the standard ASCII character set.

    It’s meant to be used when there are potentially non-ASCII characters. An example might be when using data from a database to create a hyperlink. Suppose the code creates a link to a user profile page. Unencoded, mine would be:

    <a href="profile/?username=David Stratton">Your profile</a>
    

    while Günter’s would be

    <a href="profile/?username=Günter">Your profile</a>
    

    Mine, most browsers could handle. Günter’s, probably not.

    Encoded, these would become

    <a href="profile/?username=David%20Stratton">Your profile</a>
    

    and

    <a href="profile/?username=G%FCnter">Your profile</a>
    

    which are valid URLs.

    (Please forgive the fact that most well-designed systems wouldn’t pass a username in a parameter like that. This was just a sample to clarify the concept.)

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

Sidebar

Related Questions

After reading http://www.w3schools.com/tags/tag_noscript.asp confused about onclick event on noscript tag. Anybody knows the purpose?
I was looking at the title tag http://www.w3schools.com/TAGS/tag_title.asp So would it be legal if
Normally I would us <form target=_blank> But looking through http://www.w3schools.com/tags/tag_form.asp I notice the target
Just started using Apache Commons StringEscapeUtils . According to http://www.w3schools.com/tags/ref_entities.asp , &Ouml; should correspond
Using this example: http://www.w3schools.com/php/php_ajax_database.asp I have set up a table echoing from database. I
I am not able to run this -> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_object active X on ie-7, on
Here it says the action attribute is required on form elements: http://www.w3schools.com/tags/att_form_action.asp but I
As per http://www.w3schools.com/cssref/sel_last-child.asp When i am trying to apply :last-child for my code, the
I am modifying the tutorial found here: http://www.w3schools.com/ajax/ajax_aspphp.asp so that the library of autocomplete
I have an url like this: http://www.w3schools.com/PHP/func_string_str_split.asp I want to split that url to

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.