W3C home > Mailing lists > Public > uri@w3.org > July 2007

Re: [Need advice] When to decode '+' to ' '?

From: Sebastian Pipping <webmaster@hartwork.org>
Date: Mon, 23 Jul 2007 23:23:45 +0200
Message-ID: <46A51C61.7040805@hartwork.org>
To: Mike Brown <mike@skew.org>
CC: uri@w3.org

Mike Brown wrote:
> So, to encode a set of name-value pairs (character data from an HTML form):
> 
> 1. In each name and value, encode each CR, LF, or CR+LF to "%0D%0A".

-------------------------------------------------------------------------
What I don't like about it besides the extra work is that the
data is modified in an irreversible way. Is this optional
or a must?


Another thing: Do you have any recommendations how to handle
"%00" when decoding? Should I cut it out? Should I cut it out and
ignore everything behind it as if it was "\0"?



Sebastian
Received on Monday, 23 July 2007 21:24:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:37 GMT