Hi David,

> Just to clear the confusion up, there is no need to use
> Quoted-Printable, The Bat recognises that a .mht file doesn't need
> any encoding. But strangely, from my earlier experiments with
> attaching HTML files. For a .html file it is better to use
> quoted-printable. It seems to display better in other email
> programs, and sends a much smaller email (eg 27K vs. 36K)

Whether it would display better in other email programs is beyond my
knowledge. As to the smaller size, it incidental, I'm afraid. Try a
page with lots of 8-bit characters (characters with accent marks, or
East Asian languages, etc.), and Base64 encoding would result in a
smaller file than QP.

Base64 (the default of TB and many other email clients) encodes
everything with 65 ASCII characters--a 6-bit operation. IOW, it
encodes 3 8-bit characters with 4 ASCII ones, resulting in a
consistent 33% increase in file size--regardless of the format or
content of the original file.

In comparison, QP encodes only characters with their high bit as "1"
(ASCII code 127-255). Most standard readable ASCII characters
(except the "=" sign, which carry special meaning in QP) are
represented literally without change. But when it does need to
encode something, it uses 3 bytes to represent one byte, a 200%
inflation.

Because the .mht format has already encoded binary data (graphics,
e.g.) with Base64 encoding, those have been converted into ASCII
characters. In consequence, it won't be encoded again with QP, while
with Base64 it will be encoded (and inflated) again. So, with web
pages consisting of English text (or of other languages without many
accented, umlaut or others that use the 8th bit), you're right, QP
is more efficient in terms of file size.

-- 
Best regards,
Ming-Li

The Bat! 1.46 Beta/3 | Win2k SP1



-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

You are subscribed as : archive@jab.org


Reply via email to