Jump to content

Return symbol

From LemonWiki共筆
Revision as of 05:02, 5 April 2018 by Planetoid (talk | contribs)

換行符號 (Return symbol, line terminators)

  • On Win : CRLF = \r\n
  • On Linux & macOS icon_os_mac.png : LF = \n, CR = \r

如何看到換行符號

  • Notepad++ On Win 選單: 檢視: 特殊字元: 顯示行尾字元 (EOL)
  • file (command): file filename.txt on Linux , macOS icon_os_mac.png [1] & Cygwin on Win


檔案內容 File command 偵測結果
換行符號是 CRLF = \r\n UTF-8 Unicode text, with CRLF line terminators
換行符號是 LF = \n UTF-8 Unicode text Icon_exclaim.gif
換行符號是 CR = \r UTF-8 Unicode text, with CR line terminators
換行符號夾雜 \r\n 和 \r UTF-8 Unicode text, with CRLF, CR line terminators
換行符號夾雜 \r\n 和 \n UTF-8 Unicode text, with CRLF, LF line terminators
換行符號夾雜 \n 和 \r UTF-8 Unicode text, with CR, LF line terminators
無內容的空檔案 empty

Related articles

References