UnicodeEncodeError: 'charmap' codec can't encode characters in position #2020
Replies: 3 comments 2 replies
-
the error is likely due to the attempt to write Unicode characters to a file or terminal using a default encoding that does not support those characters. To fix this, you can explicitly specify the encoding when writing the output. For example, when opening a file for writing, you can use the following: |
Beta Was this translation helpful? Give feedback.
-
if I run the python script, it gives no problems |
Beta Was this translation helpful? Give feedback.
-
solved creating a batch file to run from cmd.exe |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use whisper on Windows 11.
I wrote a simple py code:
Sometime give me this error:
Just to test, I've modified utils.py to force "utf-8" encode.
Same results.
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions