Unicode Tutorials - Herong's Tutorial Examples - Version 5.20, by Dr. Herong Yang
Opening UTF-16LE Text Files
This section provides a tutorial example on how to open a UTF-16LE text file with Nodepad correctly by selecting the Unicode encoding option on the open file dialog box.
In the next test, I want to use Notepad to open the UTF-16LE text file, hello.utf-16le, created from the previous chapter.
1. Run Notepad and click menu File > Open. The open file dialog box comes up.
2. Select the hello.utf-16le text file and select the "Unicode" option in the Encoding field. See the picture below:
3. Click the Open button. The UTF-16LE file opens in the editor correctly. See the picture below:
Very nice. This proves that Notepad can open UTF-16LE text file correctly if the Unicode encoding option is selected. This also tells us that Notepad's Unicode encoding means UTF-16LE encoding.
If you select a different encoding, like UTF-8, the UTF-16LE text file will be opened incorrectly. Try it out yourself.
Table of Contents