c - '^M' character inserted instead of new line -


goal: transferring file client server.

environment: linux

problem:

  1. 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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -