<br><br><div class="gmail_quote">On Mon, Feb 14, 2011 at 12:35 PM, Ian Kelly <span dir="ltr"><<a href="mailto:ian.g.kelly@gmail.com">ian.g.kelly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Mon, Feb 14, 2011 at 10:10 AM, Verde Denim <<a href="mailto:tdldev@gmail.com">tdldev@gmail.com</a>> wrote:<br>
> All<br>
> I'm a bit new to py coding and need to setup some code to encode/decode base<br>
> 128.<br>
> Anyone here have some info they can point me to do get this done? I've been<br>
> looking around on the web for a few days and can't seem to lay my hands on<br>
> anything definitive.<br>
> Thanks in advance for your help.<br>
<br>
</div></div>First, why do you want to do this?  I ask because there is probably a<br>
better way to achieve what you want.  I'm not aware of a standard for<br>
"base 128", and it does not sound to me like something that would be<br>
very useful.<br>
<br>
Base 64 is commonly used as an encoding system because it fits inside<br>
the 94 printable characters of ASCII and is easily implemented.  It is<br>
also provided by the Python standard library.  Why not use this<br>
instead?<br>
<br>
Cheers,<br>
<font color="#888888">Ian<br>
</font></blockquote></div><br>Ian<br>Thanks for the reply. The fact is that I don't _want_ to, but need to as a part of a work project. If I had a choice, base 64 would be the way to go since (as you point out), it's already in the standard library. If I could take the encoded form and translate it to base 64 and then use the standard library, that would work as well, but I'm not sure that there's a one-to-one correlation there.<br>
<br>- Jack<br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>