\r\n problem in cgi module?
janeaustine50 at hotmail.com
Sat Mar 20 12:59:48 CET 2004
I'm wrote a cgi script which saves some data in a file, which is
POSTed from a HTML page.
The HTML page includes:
<textarea name="text" cols="80" rows="5"></textarea>
Then I extract the "text" as such:
The surprise is "text" contains "\r\n" instead of "\n", when running
Why does this happen, and what am I supposed to do? Isn't cgi module
supposed to provide "universal_new_line"?
More information about the Python-list