FireWingHu

Results 2 comments of FireWingHu

Hi! I have the same problem: Traceback (most recent call last): File "C:\D\arduino\projects\cnc\binary-stl-toASCII-6f4e46c21ad33b19d0b99a6e1b40003e45ac8f0b\BinaryToASCII.py", line 7, in data = infile.read() File "C:\Users\FireWing\AppData\Local\Programs\Python\Python39\lib\encodings\cp1250.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec...

Ok, no problem, modifying this line: infile = open('binary.stl') #import file to this: infile = open('binary.stl', encoding="utf8") #import file has solved the problem for me. :)