aristocratos / bpytop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.07k stars 397 forks source link

UnicodeEncodeError: 'ascii' codec can't encode characters in position #392

Open freeload101 opened 1 year ago

freeload101 commented 1 year ago

Describe the bug UnicodeEncodeError: 'ascii' codec can't encode characters

[A clear and concise description of what the bug is.] cat txt.txt Traceback (most recent call last): File "/usr/local/bin/bpytop", line 11, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/bpytop.py", line 4872, in main Init.start() File "/usr/local/lib/python3.6/dist-packages/bpytop.py", line 4414, in start Draw.out("banner") File "/usr/local/lib/python3.6/dist-packages/bpytop.py", line 955, in out cls.now(out) File "/usr/local/lib/python3.6/dist-packages/bpytop.py", line 914, in now print(*args, sep="", end="", flush=True) UnicodeEncodeError: 'ascii' codec can't encode characters in position 26-31: ordinal not in range(128)

To Reproduce

[Steps to reproduce the behavior:] bpytop

Expected behavior

[A clear and concise description of what you expected to happen.]

Screenshots

[If applicable, add screenshots to help explain your problem.]

Info (please complete the following information):

Additional context

contents of ~/.config/bpytop/error.log

(try running bpytop with --debug flag if error.log is empty)