c - '^M' character inserted instead of new line -
goal: transferring file client server.
environment: linux
problem:
- when opening incompletely copied file in server, looks there "^m" character in place of new line.
^m (one character) 0x0d
newline char on linux 0x0a
newline char on windows 0x0d 0x0a (2 characters)
so 0x0d,0x0a displayed ^m,newline (depends on editor use, said correct vim)
btw, if want input ^m, need press ctrl+v, ctrl+m (in vim)
Comments
Post a Comment