On 4/26/05, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
> I noticed that NS does not encode ', but As does.
> 
> NS urlencode:  ns_urlencode "123'456" returns 123'456
> 
> AS urlencode:  ns_urlencode "123'456" returns 123%27456
> 
> which is correct?


I hope (!) the new version in naviserver is correct.  There's a set of
tests in tests/ns_urlencode.test, and my goal was to make them
complete.  I've annotated the tests with the section of the RFC I
deduced the rules from.

Looking at it now, it seems that the single quote is not a reserved
character in a URI (RFC 2396 'unreserved').  These documents are
pretty hard going so it's entirely possible I've interpreted it wrong.
 If anyone can identify some rules I've missed or got wrong, that
would be great.

Reply via email to