
19 Mar
2010
19 Mar
'10
3:04 a.m.
On Thu, Mar 18, 2010 at 4:45 PM, Andrey Moskvitin <archimag@gmail.com> wrote:
Hi, I encountered the following problem: CL-USER> (hunchentoot:url-decode "+") " " CL-USER> (hunchentoot:url-encode "+") "%2B" But in JavaScript:
encodeURI("+") "+" decodeURI("+") "+" This is a bug? Andrey
No, it just depends on which RFC you follow that describes URL escaping. For example, PHP has two different url-escaping functions to handle the two RFCs - urlencode (like hunchentoot's url-encode), and rawurlencode (like javascript's encodeURI). That said, the behavior of javascript's encode functions are generally more common. ~TJ