2014年1月1日 星期三

CR LF ASCII

ASCII code裡面(carriage return)CR ==> '\r'  (相當於enter鍵)
                  Line Feed          LF ==>'\n'   (換行)

unix系統每行結尾只有'\n'
windows 結尾是 "\n\r"
mac 系統則是 '\r'

如果windows 文件用unix/mac開啟每行結尾會多一個 ^M符號

ascii 字元對照

0x09    '\t'
0x0a    '\n'
0x0d    '\r'

沒有留言:

張貼留言