urlencode() and newlines?
| From: | Nick Wilson | Date: | Sat, 16 Oct 2004 14:31:04 +0000 |
| Subject: | urlencode() and newlines? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-199631@lists.php.net to get a copy of this message | ||
hello all,
For reasons beyond my immediate control i have to keep some strings of
text in a text *new line delimited* text file. I also have to urlencode
those strings for use in my script.
Like this:
## text file
This is a line\nThis is another line
This is another string\nwith some more\nnew lines
Problem is, that urlencoding those lines doesnt seem to work well the
the \n's - when they get to where they are going (another server, not in
my control) the new lines are no longer there...
Can anyone tell me how to get round this issue without storing the
strings in another way? - many thanks! ;-)
--
Nick W