[Python-au] textarea returns and newlines
Mike Dewhirst
miked at dewhirst.com.au
Mon Jan 16 04:55:04 CET 2006
Kinsley Turner wrote:
>
>>I'm working up a web thingy and have struck a problem with CGI textarea
>>objects. It may be because I'm writing and testing in Windows but
>>deploying and runnning on Linux/Apache.
>>
>>Multi-line text I collect gains \\r\\n without being asked. Here is an
>>example copied directly from a textarea box ...
>>
>> "... partly of course.\\r\\n\\r\\nOn the other hand ..."
>>
>>It was originally entered as ...
>>
>> "... partly of course.
>>
>> On the other hand ..."
>
>
>
> You've checked the encoded request from the client right -
> I mean, is it like that before you even start to parse it?
I'm going back to the drawing board. I've got different things happening
when I do a test from scratch. Must be me.
Sorry to bother you.
Thanks
Mike
>
> IIRC HTTP uses \r\n as EOLN.
>
> Is there are reason why you can't/don't want to just replace them
> with a local EOLN ?
>
> -kt
>
More information about the python-au
mailing list