G
greg
Hi All,
How can you encode a ENTER? In case of space: \s, what about ENTER?
Thanks,
Greg
How can you encode a ENTER? In case of space: \s, what about ENTER?
Thanks,
Greg
If you mean a newline, it's "\n".greg said:Hi All,
How can you encode a ENTER? In case of space: \s, what about ENTER?
How can you encode a ENTER? In case of space: \s, what about ENTER?
Actually, depending on what text editor you are using, on Mac OS X,
ASCII(13) may still be used.
2007/8/13 said:A robust line-oriented program tries to understand every convention.
For instance a CGI processing a text area. That normally requires
newline normalization by hand. Some programming languages offer I/O
options to understand everything on reading. For instance the :crlf
Perl I/O layer,
Gavin said:On Windows, pressing the 'enter' key key inserts a CR/LF pair,
representable in a Ruby string as "\r\n".
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.