Firefox automatically inserts the sequence %E2%80%9D at the beginning and end of every hyperlink I enter in my blog, generating “Page not found” messages for the readers.
I publish a French-language blog hosted by canalblog.com. For the last few months, I keep finding a weird sequence in every link I put in:
%E2%80%9D
This appears at the very beginning and end of every hyperlink, (immediately after the opening quote mark and before the closing quote mark). I have determined that it is inserted automatically by Firefox when I leave the HTML mode, either to save my post or to preview it. Unless I remove the sequence manually, a “Page not found” error appears for anyone who clicks on my links.
I have also determined that the bug does not appear if I enter my posts through Safari.
I’m getting a little sick of re-editing every post to delete those sequences after the fact. Can someone do something about it?
Gekozen oplossing
%E2%80%9D is the Unicode representation of a double closing quote: ” (”)
You get this code via encodeURI() or encodeURIComponent() of a link with that character.
See http://en.wikipedia.org/wiki/Quotation_mark
Dit antwoord in context lezen 👍 0Alle antwoorden (3)
Gekozen oplossing
%E2%80%9D is the Unicode representation of a double closing quote: ” (”)
You get this code via encodeURI() or encodeURIComponent() of a link with that character.
So all I have to do is leave out the quotation marks, letting Firefox insert them on its own? I tried it and it works. Thanks a million my friend.
You're welcome.