utilsBestEncoding

fngmime.types.ContentEncoding utilsBestEncoding(ubyte[] text)

Determines the best content encoding for the first len bytes of text.

Parameters

texttext to encode

Returns

a #GMimeContentEncoding that is determined to be the best

encoding type for the specified block of text. ("best" in this particular case means smallest output size)