Notepad uses Unix encoding format by default:
Since the line breaks under Windows are different from those under Unix, programs edited under Windows will appear at the end of each line if viewed under Linux. The "^M" symbol is actually "\r". Line breaks under Windows are "\r" and "\n", while under Linux it is "\n" without "\r", so "\r" will be processed separately. display.
If you want to use Notepad to convert Windows style files to Unix style:
Edit-> File Format Conversion-> ; Convert to XXX format
If you want new files created by Notepad to use a certain encoding style by default:
Settings-> Preferences-> New-> Format-> ; Windows/Unix/Mac
The above is the detailed content of Notepad uses Unix encoding format by default. For more information, please follow other related articles on the PHP Chinese website!