You are not logged in.
Hi,
I am having trouble with the "{" and "}" characters converting when in links e.g. href="{url}"
I have the "only7BitPrintablesInURLs" set to true
this.only7BitPrintablesInURLs = true;
As the braces are part of the regular ascii set shouldn't they not convert.
any insights appreciated
xtianjs
Offline
That setting does not do what you think it does - it forces all high-ascii (greater than 7 bit) characters to be url encoded even when they normally are not, but it does not affect what happens to lower ascii characters at all.
If you are in chrome, hit CTRL-SHIFT-J now and type into the console:
escape("{")
and you will see that indeed, it is escaped to %7B by the browser.
That's just how javascript's escape() function works.
Your best solution is to use some string manipulation on your end to replace %7F with { and %7D with } once you have the content out of Xinha.
James Sleeman
Offline