The website doi2bib.org looks up the DOI code for a publication and returns data about the publication. DOI codes include forward slashes, for example:
There are two ways to get the data for that publication:
- Go to doi2bib.org and enter the DOI in the text box, or
- Go directly to a doi2bib URL for that DOI: https://doi2bib.org/bib/10.1037%2Fdev0000663
In the second method, the slash in the DOI must be URL encoded to
%2f. The URL without that encoding does not work. Thus, https://doi2bib.org/bib/10.1037/dev0000663 does not work.
Now, here's the problem. If I copy the working URL
into MS Word or Excel, the link does not work from there, but yields the error message:
Note that the URL appears correctly in that error message. A clue to the problem might be in what appears when the mouse hovers over the URL in Word:
Note that here the URL has been decoded to change
%2F to a slash. If that is the URL Word is actually trying to get to, that explains why it is failing.
I tried converting
%252F to see if that would send the correct URL, but it doesn't. That yields the error message:
and hovering the URL suggests that Word just converted
%252F also to a slash and then tried again to go to the wrong URL:
Besides Word and Excel, the links also do not work in the "Create PDF from Web Page" command of Adobe Acrobat. So the problem is not specific to MS Office programs.
How can I write this URL so Word and other programs will follow it correctly?