Working with bytes.
Piet van Oostrum
piet at cs.uu.nl
Mon Apr 5 11:49:38 EDT 2004
>>>>> Bernhard Herzog <bh at intevation.de> (BH) wrote:
BH> Piet van Oostrum <piet at cs.uu.nl> writes:
>> Yes, you could in principle use 94 characters. There is a scheme called
>> btoa that encodes 4 bytes into 5 ASCII characters by using BASE85, but I
>> have never seen a Python implementation of it. It shouldn't be difficult,
>> however.
BH> Is that the same as PDF/PostScript Ascii85? If so, there's an
BH> implementation somewhere in reportlab, IIRC.
They are slightly different AFAIK. Postscript uses '~' and btoa uses 'x'
as terminating character. For the OP's use it doesn't matter of course.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list