Return symbol
Jump to navigation
Jump to search
Return symbol (line terminators)
如何看到換行符號
- Notepad++ On Win 選單: 檢視: 特殊字元: 顯示行尾字元 (EOL)
- file (command): file filename.txt on Linux , macOS
[1] & Cygwin on Win
| 檔案內容 | File command 偵測結果 |
|---|---|
| 換行符號是 CRLF = \r\n | UTF-8 Unicode text, with CRLF line terminators |
| 換行符號是 LF = \n | UTF-8 Unicode text |
| 換行符號是 CR = \r | UTF-8 Unicode text, with CR line terminators |
| 換行符號夾雜 \r\n 和 \r | UTF-8 Unicode text, with CRLF, CR line terminators |
| 無內容的空檔案 | empty |
Related articles
- Carriage return - Wikipedia
- 回車鍵 - 維基百科,自由的百科全書
- 陳雲濤的部落格: 筆記 CRLF跟LF之區別 --- 隱形的 bug:「CRLF才是真正的打字機運作方式,你可以想像:打字機打到最右邊,要先return到最左邊之後,再往下一行,所以是CRLF ... ...」
- Differences in end of line characters Mac, Windows, and Linux
References