Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utf-8' codec can't decode byte 0xff in position 0 #42

Open
cszczepanski opened this issue May 31, 2017 · 1 comment
Open

utf-8' codec can't decode byte 0xff in position 0 #42

cszczepanski opened this issue May 31, 2017 · 1 comment

Comments

@cszczepanski
Copy link

cszczepanski commented May 31, 2017

Hello, I try to use python-messaging. I try your example for the encoding of a MMS text + photo, but here is the error message:

pi@raspberrypi:~/PycharmProjects/mms $ python3 mms.py
Traceback (most recent call last):
File "mms.py", line 13, in
payload = mms.encode()
File "/usr/local/lib/python3.4/dist-packages/python_messaging-0.5.12-py3.4.egg/messaging/mms/message.py", line 223, in encode
File "/usr/local/lib/python3.4/dist-packages/python_messaging-0.5.12-py3.4.egg/messaging/mms/mms_pdu.py", line 607, in encode
File "/usr/local/lib/python3.4/dist-packages/python_messaging-0.5.12-py3.4.egg/messaging/mms/mms_pdu.py", line 802, in encode_message_body
File "/usr/local/lib/python3.4/dist-packages/python_messaging-0.5.12-py3.4.egg/messaging/mms/message.py", line 552, in data
File "/usr/lib/python3.4/codecs.py", line 313, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

You could explain me how to take out there.
Thank you for your help
best regards
christophe

@cchristian
Copy link

I recently started migrating my codebase from python2 to python3 and encountered same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants