When I create a URL link in a CS6 InDesign document, InDesign is immediately discarding the "?," "=," and " &"characters and rereformatting them incorrectly, breaking the link. This is new behavior to me. How do I fix this, or is this a bug?
For the record, it's turning the:
? into %3F
= into %3D
& into %26
Are any of these incorrect?
Upon further research, I see that InDesign is encoding these characters unneccessarily, since they only need to be encoded when they're not being used in URL syntax, which they are here. I'm thinking this is a bug, but I'm curious why no one else is having this issue.
It's called "URL encoding" (http://en.wikipedia.org/wiki/Url_encoding) and it happens because not al
characters are valid in an URL. A space, for example, would invalidate the link; therefore it gets converted into the code "%20" -- a hexadecimal representation of the ASCII value for the space.
So I can confirm those characters you ask about are, in fact, correctly encoded.
As for the problem it causes,
>... rereformatting them incorrectly, breaking the link. This is new behavior to me.
-- how do you know they "break" the link? Do your hyperlinks stop working? How did you check those?
Reason for me to ask this is that this URL encoding thingy is nothing new. Any sane Internet software ought to be able to reconstruct the original query out of URL Encoded URLs. (Although I must admit this is a strange change, as "raw" ?, &, and = are all over the web -- just type in anything into Google and see what it says in the address bar.)
Ah wait -- I just tried, and contrary to what I believed (and stated above), Google does NOT accept "%3F" in a place where it expects a "?".
Okay, so this feature didn't improve much. It has been said "CS6 contains hundreds of bug fixes" (over CS5.5, meaning as much as "to get it fixed you'll have ta upgrade"), this one seems to be Brand New. Oh well, let's hope this one gets repaired in CS7, then.
I thought the values were correct, but the links just didn't work. I reinstalled InDesign CS 6 (after tossing some lingering old CS 5.5 prefs), re-entered the URL, generated the PDF, and all's well now. Go figure.
I have had problems with creating links to URLs from InDesign as well. What I discovered was that the space character (often used in names of our links) is converted to '%20'. The link works fine.
However, should I reopen the hyperlink dialogue box to view it, say, and click 'OK' the '%20' is reconvereted to '%2025' breaking the resulting link. Replacing the '%2025' with a space and then clicking 'OK' reveerts back to the correct encoding of '%20'.
This is definitely a bug.
Have this same issue in CS6, weather i copy/paste the url in or manualy key it into the hyperlink panel. Indesign replaces the ?, = and & symbols in my working URL, making it not work once a PDF is created.
I paste the URL into the hyperlink panel, and it instantly changes the characters! I have even gone in and manually changed the characters in indesign, and when i click off of it Indesign replaces the symbols again with %3 and in the cas of the = sign, the Capital leter "D"
Even went so far as to paste the URL into texedit and make plain text to strip any possible formating, but to no avail....VERY FRUSTRATING.
Is there even a fix?