UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 189: character maps to <undefined>
rmcc3 opened this issue · 2 comments
rmcc3 commented
File "C:\Users\darkl\bark\bark_webui.py", line 172, in generate_audio_long_gradio
trim_logs()
File "C:\Users\darkl\bark\bark_webui.py", line 686, in trim_logs
lines = f.readlines()
File "C:\Users\darkl\mambaforge\envs\bark-infinity-oneclick\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 189: character maps to <undefined>
rmcc3 commented
Fix is to add encoding='utf-8'
JonathanFly commented
Thank you @rmcc3 and I can't believe I did this again. I need to test on Windows.