Obtaining a hexadecimal dump of a Unicode Text Document

As part of the High Plane Unicode Mapping thread http://forum.high-logic.com:9080/t/high-plane-unicode-mapping/2340/1 I produced a Unicode Text Document from WordPad.
12345rainbow.txt
I remember that some years ago I saved a Unicode Text Document from WordPad and managed to produce a hexadecimal dump of the bytes in the file, which I could then study so as to understand how WordPad is storing the characters in the file.

I would like to study the bytes in the attached file to try to determine how the characters are stored in the file.

Unfortunately i cannot remember how I obtained the hexadecimal dump of the file.

Could someone suggest a method to produce a hexadecimal dump of the file please?

William Overington

2 January 2009

Here is a hex representation of your file that contains 16 bytes:

FFFE310032003300 34003500B8DB0DDC ÿþ1 2 3 4 5 ¸Û Ü

You can use this utility to view a file in it’s hexadecimal presentation:
ViewHex.zip

Thank you.

William Overington

2 January 2009

You’re welcome.

The first two bytes are a byte-order mark. 0xFF 0xFE indicates the file has a UTF-16 (little-endian order) encoding.