This section provides a tutorial example on how to save text files with Word by selecting the 'Unicode (Big-Endian)' encoding option on the file conversion dialog box.
In the next test, I want to try the save function with the "Unicode (Big-Endian)" option.
1. Run Word and open hello.utf-8 correctly with the Unicode (UTF-8) encoding option selected.
2. Click the File > "Save As" menu. The "Save As" dialog box comes up.
3. Enter word_utf-16be.txt as the new file name and select the "Plain Text (*.txt)" option
in the "Save as Type" field.
4. Click the Save button. The File Conversion dialog box comes up.
5. Click the "Other encoding" radio button and select the "Unicode (Big-Endian)" option.
6. Click the OK button. Word saves the text to a new file named as: word_utf-16be.txt.
7. To see how my text is saved by Word, I need to run my HEX dump program on word_utf-16be.txt:
Very nice. This is a perfect UTF-16 encoding file using the Big-Endian with BOM format.
Those leading 2 bytes represent the BOM flag, which is not part of the text.
Conclusion - The "Unicode (Big-Endian)" encoding option of MS Word matches the "Big-Endian with BOM" format of
Unicode UTF-16 encoding.