Saving Files in "Unicode (Big-Endian)" Option

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:

C:\herong\unicode>java HexWriter word_utf-16be.txt word_utf-16be.hex
Number of input bytes: 170

C:\herong\unicode>type word_utf-16be.hex

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.

Table of Contents

 About This Book

 Character Sets and Encodings

 ASCII Character Set and Encoding

 GB2312 Character Set and Encoding

 GB18030 Character Set and Encoding

 JIS X0208 Character Set and Encodings

 Unicode Character Set

 UTF-8 (Unicode Transformation Format - 8-Bit)

 UTF-16, UTF-16BE and UTF-16LE Encodings

 UTF-32, UTF-32BE and UTF-32LE Encodings

 Java Language and Unicode Characters

 Character Encoding in Java

 Character Set Encoding Maps

 Encoding Conversion Programs for Encoded Text Files

 Using Notepad as a Unicode Text Editor

Using Microsoft Word as a Unicode Text Editor

 What Is Microsoft Word

 Opening UTF-8 Text Files

 Opening UTF-16BE Text Files

 Opening UTF-16LE Text Files

 Saving Files in "Unicode (UTF-8)" Option

Saving Files in "Unicode (Big-Endian)" Option

 Saving Files in Unicode Option

 Supported Save and Open File Formats

 Using Microsoft Excel as a Unicode Text Editor

 Unicode Fonts

 Unicode Code Point Blocks: 0000 - 0FFF

 Unicode Code Point Blocks: 1000 - FFFF

 Unicode Code Point Blocks: 10000 - 11FFF

 Unicode Code Point Blocks: 12000 - 10FFFF

 Outdated Tutorials


 Full Version in PDF/EPUB