I have had a similar issue and understand that the following is the best solution:
However, the link that micahwittman posted suggests that there are some minor encoding differences. PHP's rawurlencode()
function is supposed to comply with RFC 1738, while there appear to have been no such effort with Javascript's decodeURIComponent()
.