encoding - Why does Internet Explorer encode the URL differently when Control-clicking a link -


I am facing a problem where Internet Explorer (10, but I think I have the old IEs The only problem is) encode is based on a URL differently if I normally click on a link or if I open a new tab by pressing it on.

I have made small jsbins to test this problem, and when I click the Normally link in the Wahaheharak Show:

normal click

This is what I get when control-click :

control-click

Note that " A "???" is different encoded in the URL, in the first case "\ 305", and the second "\ 303 \ 205".

How to regenerate

You need a warehark or something similar, so some work is required.

  1. Go to this Jsbien: In Internet Explorer
  2. Start VirarSharck (or your tool of choice) and start capturing.
  3. Click the "testme" link (usually, not with control).
  4. Click on the link while holding control
  5. Compare URL in Wearhark

    Why this is happening, and more importantly, Is there any alternative solution or actual improvement? the

    This is an invalid URL can fool the browser developers such as Google Chrome because decode the address bar The characters are shown, but they never send those characters to the server, but use the standard URL encoding behind the curtain. Additionally, when you copy the URL from the Google Chrome address bar, the ugly encoding builds on your clipboard.

    It allows only characters:

    unreserved

      Abiseediifjiacaijekeelmanopikyuartiu Veedblyuekswaijed Abeediifrgijclmnopiktrstu Viviaks 0 1 2 3 4 5 6 7 8 9 - _ ~   

    reserved
    should be encoded sometimes

     ! * '(); : @ & Amp; = + $, /? % # []    

    encode URLs in your links:

      & lt; A href = "? PKod = BAS% C3% 85R" & gt; & Lt; / A & gt;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -