If I send text from an textarea to my Arduino Webserver, I get this:
Hello%2C+this+is+a+test.%0D%0ALine+2%0D%0ALine+3
But I would like to write normal text to a file on the SD card, like this:
Hello, this is a test
Line 2
Line 3
Is there conversion code somewhere ?
I use an Arduino Mega 2560 with Ethernet Shield.
My webpages are located on the SD card.
My form textarea is:
<form method=get action=?>
<textarea name="4" rows="2" cols="40"></textarea>
<input type=submit value=submit>
</form>
The name "4" is the command.
Edit: The name "4" was a bad idea, because it is an numer. I changed it to "D". The number "4" causes a conflict when prefilling the textarea with text.