-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi, I stumbled upon this issue while using duviz on my disk with an accentuated letter ("é").
The error was:
File "/usr/local/bin/duviz.py", line 72, in from_path_size_pairs
for path, size in pairs:
File "/usr/local/bin/duviz.py", line 130, in pairs
progress_report(path)
File "/usr/local/bin/duviz.py", line 453, in progress
write(info.ljust(terminal_width)[:terminal_width] + '\r')
UnicodeEncodeError: 'ascii' codec can't encode character '\u2014' in position 138: ordinal not in range(128)
and according to this article it can be resolved by adding (the one which worked for me):
os.environ["PYTHONIOENCODING"] = "utf-8"
at the beginning of main()
Nicola
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels