Skip to content Skip to sidebar Skip to footer

Encoding Error, In Python3

I have a somewhat similar question here that I can't solve. In another instance of my code, I face similar encoding errors. Do assist! My code: port = serial.Serial('/dev/ttyUSB0',

Solution 1:

Wrong encoding method.

Correct one was 'cp437'

Unsure why UTF-8 worked after the break, but not after writing a command

Post a Comment for "Encoding Error, In Python3"