firefox saves bookmarks containing " as %22
When I save a book mark containing the double-quote-symbol " in my bookmarks, it becomes automatically %22. then when I click on that bookmark it won't get properly resolved, because the server for that URL does not recognize %22
ALSO it seems when I paste anything in FIREFOX containing " it gets changed to %22
example below
https://finance.yahoo.com/echarts?s=SPY+Interactive#{"allowChartStacking":true} turns into: https://finance.yahoo.com/echarts?s=SPY+Interactive#{%22allowChartStacking%22:true}
when I paste it in this text box.... I'm using firefox 46.0 in LINUX
All Replies (3)
You should post problem links "as is." Then note the problem.
https://finance.yahoo.com/echarts?s=SPY+Interactive#{%22allowChartStacking%22:true} is no problem for me.
Note that some charactors are not allowed in web addresses and are changed via %
@FredMcD I don't understand what you are trying to tell me. I've used FireFox for many years, and I only experienced this issue recently (~2 weeks ago) this link have been saved in my bookmarks for a long time, and now it won't return the page I expected from Yahoo. even if I save the same URL in bookmarks, the " becomes automatically %22.
the original URL should read: https://finance.yahoo.com/echarts?s=IBM+Interactive#{"showArea":false,"showLine":false,"showOhlc":true,"lineType":"bar","range":"5d","allowChartStacking":true}
after, I bookmark it in Firefox 46.0 and even if I copy the correct URL from firefox and I paste it here, in this text box, it turns into this: https://finance.yahoo.com/echarts?s=IBM+Interactive#{%22showArea%22:false,%22showLine%22:false,%22showOhlc%22:true,%22lineType%22:%22bar%22,%22range%22:%225d%22,%22allowChartStacking%22:true}
ALL the " become %22
No problem here with the %20. If I paste this in the location field of a bookmark in directly in the location/address bar then Firefox shows the unescaped version and I get the page with the image.
- https://finance.yahoo.com/echarts?s=IBM+Interactive#{%22showArea%22:false,%22showLine%22:false,%22showOhlc%22:true,%22lineType%22:%22bar%22,%22range%22:%225d%22,%22allowChartStacking%22:true}
It is normal to encode characters like the double quote.
- https://developer.mozilla.org/Web/JavaScript/Reference/Global_Objects/encodeURI
- https://developer.mozilla.org/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
You can open the Web Console ("3-bar" menu button or Tools > Web Developer).
Paste the JavaScript code in the command line. Press the Enter key to evaluate the JavaScript code.
encodeURI('https://finance.yahoo.com/echarts?s=IBM+Interactive#{"showArea":false,"showLine":false,"showOhlc":true,"lineType":"bar","range":"5d","allowChartStacking":true}');
This gives:
https://finance.yahoo.com/echarts?s=IBM+Interactive#%7B%22showArea%22:false,%22showLine%22:false,%22showOhlc%22:true,%22lineType%22:%22bar%22,%22range%22:%225d%22,%22allowChartStacking%22:true%7D
Athraithe ag cor-el ar