D
D
Dmitry Smolyakov2015-10-30 00:36:56
Python
Dmitry Smolyakov, 2015-10-30 00:36:56

What should I do with encodings in python 3?

I have been struggling with encodings for a long time, I tried many options. I do not know what to do.
Run gj;fkeqcnf on Linux if you can, probably troubles on Windows.
Version 3.5
Files in utf-8 encoding
pastebin.com/m0DrZyzw - server
pastebin.com/tKMRKb94 - client
The error itself.
TypeError: a bytes-like object is required, not 'str'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2015-10-30
@spudro

encode
decode
https://docs.python.org/3/howto/unicode.html#conve...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question