Simple fix for the following UnicodeEncodeError error:
File "..\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 25-26: character maps to <undefined>
The error occurs when running the script on a file path containing non-ASCII characters, such as Japanese.
To reproduce the error on Windows command line, run the following command:
Simple fix for the following
UnicodeEncodeError
error:The error occurs when running the script on a file path containing non-ASCII characters, such as Japanese.
To reproduce the error on Windows command line, run the following command: