0

So i tried using the .encode on a str, but the encoded message always turned out as b'str here'

m = 'hello'
t=m.encode(encoding='UTF-8')
print(t)

output:

b'hello'

I've used other people's codes before, and in some way and somehow it works, but when I do the exact same thing, everything the same, but it doesn't work for me.

0 Answers0