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 Word correctly by selecting the Unicode encoding option on the open file dialog box.
In the next test, I want to use Word to open the UTF-16LE text file, hello.utf-16le, created from the previous chapter.
1. Run Word and click menu File > Open. The Open file dialog box comes up.
2. Select the hello.utf-16le text file and click the Open button.
The File Conversion dialog box comes up automatically.
But this time Word failed to detect the correct encoding and suggests you to use the Windows default encoding to read the text file.
See the incorrect text in the preview section in the picture below:
3. Click the "Other encoding" radio button and Select the "Unicode" encoding
from the encoding list. Word now converts the UTF-16LE text correctly.
See the correct text in the preview section in the picture below:
4. Click the OK button. My UTF-18LE text file opens in Word correctly.
Not too bad. This proves that Word can open UTF-16LE text file correctly if the "Unicode" encoding option is selected.
Last update: 2009.
Table of Contents