Hi, When I use the print command after connecting to the printer, I get an error saying "Can not convertProgram Error ('utf8' codec can not decode byte 0xc0 in position 2: invalid start bytes). When I search Google, I try to change the code to utf16. I looked up each Python script and I can not find the code in the language set. Let me know how to fix the error.
edit the script that will send commands in the language of your printer (pjl.py, pcl.py or postscript.py)
Add this:
import sys
reload(sys)
sys.setdefaultencoding('iso-8859-1')
i hope this helps you
Hi, When I use the print command after connecting to the printer, I get an error saying "Can not convertProgram Error ('utf8' codec can not decode byte 0xc0 in position 2: invalid start bytes). When I search Google, I try to change the code to utf16. I looked up each Python script and I can not find the code in the language set. Let me know how to fix the error.