-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] UnicodeEncodeError: 'charmap' codec can't encode character #67
Comments
There is no error if I run: steamctl apps list I can even get the
However, the list is really long, so it gets truncated by the Windows console, and it would be handier to save it to a text file. I remember encountering this issue in the past, without reporting it, and then editing the code to save the output to a file. On a side-note, I am not sure if the issue only happens on Windows. |
The error can be reproduced with a Python file print('∞') python scratch_1.py Output:
python scratch_1.py > temp.txt Output:
|
Use a terminal that supports utf8 and is configured to use utf8 |
That is the case. The issue is with the redirection to a file, which does not seem to work properly on Windows. For instance, in the picture below, there is no error, but an inconsistency. echo ∞
echo ∞ > temp.txt
type temp.txt I can fix the inconsistency with chcp 65001
echo ∞
echo ∞ > temp.txt
type temp.txt For the error with Python, I have a small workaround. |
Description
I want to export the list of apps to a text file using the Windows console, and there is an
UnicodeEncodeError
error.Steps to Reproduce the behavior
Run:
steamctl apps list > apps_list.txt
Expected behavior
The software should run without any error, and the text file should contain the lists of appIDs along the app names.
What actually happend
The error happens for appID=208610 which is
Skullgirls ∞Endless Beta∞
. I believe the culprit is the∞
character.Logs
steamctl -l debug
Versions Report
steamctl --versions-report
The text was updated successfully, but these errors were encountered: