Re: [flask] Value POST
- From:
- Jair Gaxiola
- Date:
- 2011-07-09 @ 17:45
On Sat, Jul 9, 2011 at 12:28 PM, Armin Ronacher
<armin.ronacher@active-4.com> wrote:
> Hi,
>
> On 2011-07-09 6:59 PM, Jair Gaxiola wrote:
>> I get data from POST with value '6+Z' use request.form['mifield'], but
>> when I print the value returned '6 Z' disappears symbol '+' How can
>> avoid it?
> Encoded "6+Z" means "6%20Z" which means "6 Z". Whoever makes that
> request is improperly encoding the value. Where is the data coming from?
>
the character '+' should go to print the result, meaning that I have
'6+Z ' must not change '+' with a space
--
SIN ETIQUETAS.[ PUNTO ]
http://flavors.me/jyr
http://pythoncocoa.com
http://opentumblr.com
Re: [flask] Value POST
- From:
- Armin Ronacher
- Date:
- 2011-07-09 @ 19:54
Hi,
On 2011-07-09 7:45 PM, Jair Gaxiola wrote:
> the character '+' should go to print the result, meaning that I have
> '6+Z ' must not change '+' with a space
That's not up for you to decide. Post data has to conform to the HTTP
specification and that clearly says that "+" is a space and not a plus.
Properly encode that plus if you submit it.
Regards,
Armin