Trouble with ~ in \href links

I encountered a strange behavior with "~" symbol in the \href links. Please take a look at Erdos et al. paper in the bibliography of http://garden.irmacs.sfu.ca/?q=op/divisibility_of_central_binomial_coefficients When I click on this paper link, "~" is substituted with "%C2%A0", resulting in a wrong url. If I replace "~" with "%7E", the link does not work either with even worse corruption of the whole bibliography. So, what is a proper way to specify "~" in the \href links? Thanks, Max P.S. The forum displays this message incorrectly. ;(((

Re: Trouble with ~ in \href links

Sorry for late response. It works now.

The trouble is that the meaning of "tilda" in urls (as a "normal character") competes with its meaning in TeX (as non-breakable space). Our system uses some heuristics, which obviously is not the best one. (We'll improve this.)

In case you are curious, the reason why it failed here (and not in the other link) was that using the curly braces in the math formula fooled our heuristics to think that the \href commands ends sooner then it actually did.

Anyways, thanks for pointing this out and sorry for inconvenience,

Robert