Re: When is percent-encoding required.

Hi Charles,

> Here is the wording I now propose:
>
> According to [RFC 3968], characters that are in <gen-delims> (a subset of  <reserved>) MUST be percent-encoded (though it is not 
> wrong to encode  others). Specifically, the characters allowed in <msg-id-core> that must  be encoded are
>     "/"  "?"  "#"  "[" and "]"
> Note that an agent which seeks to interpret a 'news' URI needs to decode  all these percent-encoded characters before passing it 
> on to an NNTP  server to be acted upon.
>
> Comments anyone?

MUSTn't "%" also be encoded?

I see in to-be RFC 5538:

     mid-left        = 1*( mid-atext / "." ) /      ; <dot-atom-text>
                       ( "%22" mid-quote "%22" )    ; <no-fold-quote>
     mid-right       = 1*( mid-atext / "." ) /      ; <dot-atom-text>
                       ( "%5B" mid-literal "%5D" )  ; <no-fold-literal>
     mid-atext       = ALPHA / DIGIT /              ; RFC 2822 <atext>
                       "!" / "$" / "&" / "'" /      ; allowed sub-delims
                       "*" / "+" / "=" /            ; allowed sub-delims
                       "-" / "_" / "~" /            ; allowed unreserved
                       "%23" / "%25" / "%2F" /      ; "#" / "%" / "/"
                       "%3F" / "%5E" / "%60" /      ; "?" / "^" / "`"
                       "%7B" / "%7C" / "%7D"        ; "{" / "|" / "}"

but if I have a message-ID that contains "%23", isn't is mandatory to
convert it into "%2523" (URI)?

-- 
Julien ÉLIE

« Il n'y a pas moyen de contenter ceux qui veulent savoir le pourquoi
  des pourquoi. » (Leibniz) 

Received on Tuesday, 19 January 2010 00:03:16 UTC