Re: Some Error In Word
That file looks like a BinHex file format
The BinHex format was created to satisfy two specific needs. First, to allow transferring binary files (therefore coded on 8 bits) sent on the Internet, whose pipes are not always "8-bit clean". This means that there must be some sort of mapping between a 8-bit stream and a 7-bit stream. Secondly, to bundle in a single container both forks composing a Macintosh file. Last but not the least, the author, Yves Lempereur, added a compression function, of the RLE type, to avoid sending repetitive sequences of identical characters.
How to identify a binhexed file?
The suffix used for binhexed files is generally HQX. The signature of those files (on a HFS or HFS+ [Macintosh] medium) is TEXTBNHQ.
More, the first line of a BinHex file is:
(This file must be converted with BinHex 4.0)
You only have to open the file in a word processor to ascertain that the file you received is indeed a BinHex file. Please note that this comment line is not mandatory, according to the specs, but that all utilities we already used put this line at the beginning of the file. The BinHex standard also specifies that the first and last character of the data stream should be a colon .
Most classical binhexed files only have this first comment line, followed by a carriage return and a line feed (and only one pair of those). However, we already saw files where this line was not the first one, but the second one. We also saw files where the end-of-line marker (which should be a carriage return + line feed) was only the carriage return, or only the line feed, or both, but in the reverse order.
Our programs were amended to also handle correctly such files. Upgrade
When can you get binhexed files?
The BinHex standard is one of the working modes (with Mime) of most Macintosh mail softwares. Those packages code and decode the data stream automatically, and most users never know they are using binhexed files. Things are different when a Macintosh user sends a file to a PC user. Some mail packages on the PC don't know the BinHex standard and just store the coded file on the hard disk.
The BinHex format is also used by some programs to build Macintosh files on other platforms. That is what Flash (Macromedia) does when asked to build a Macintosh animation. In this case, the BinHex coding plays the same role than the MacBinary coding, since the 7-bit coding is technically irrelevant.
How to decode binhexed files on the PC?
There are several utilities to decode binhexed files on the PC. They generally show some shortcomings, mostly because of the very nature of Macintosh files. The main shortcomings are:
The original Macintosh filename is lost.
The signature of the Macintosh file is not recognized.
The contents of the resource fork is lost.
There is a good article on the Binhex standard in the Wikipedia.
The Binhex format was mostly used around the Mac but its origins go much further.
~~~~~~~~~~~~~~~~~~~~~~~
All science is either physics or stamp collecting
Not only does God play dice, but... he sometimes throws them where they cannot be seen.
~~~~~~~~~~~~~~~~~~~~~~~
Bookmarks