unicode and data strings

L

Laszlo Zsolt Nagy

Hello

I have a program where I would like to calculate a checksum. Looks like
this:

n = self.__calc_n(seed1,seed2,pwd)

This is required for an OTP (One Time Password) algorithm. My code was
working before without problems.
Now I installed Python 2.3.4 and wxPython 2.5.3 (with unicode support).
I'm getting this exception:

exceptions.UnicodeDecodeError:'ascii' codec can't decode byte 0x91 in
position 0: ordinal not in range(128)

The I tried this:
UnicodeDecodeError: 'utf8' codec can't decode byte 0x91 in position 0:
unexpected code byte

Here is the question: I would like to use simple binary data strings
(like an array of bytes).
I do not care about encodings. How do I do that?

Thanks,

Laci 2.0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top