Skip to content
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: 'charmap' codec can't encode character #667

Open
1 task done
bverhoeff opened this issue Jan 9, 2025 · 1 comment
Open
1 task done

Bug: 'charmap' codec can't encode character #667

bverhoeff opened this issue Jan 9, 2025 · 1 comment

Comments

@bverhoeff
Copy link

bverhoeff commented Jan 9, 2025

Checklist

Safety version

3.2.14

Python version

3.12.7

Operating System

Windows 11 Home:

Editie Windows 11 Home
Versie 24H2
Installatiedatum ‎14-‎12-‎2024
Build van besturingssysteem 26100.2605

Describe the problem you'd like to have solved

When running safety scan --output screen > results.txt I get an exception:

safety scan --output screen > results.txt
Unhandled exception happened: 'charmap' codec can't encode character '\U0001f4dd' in position 0: character maps to <undefined>

This looks a lot like an older bug: #119 and #22

The workaround set PYTHONIOENCODING=UTF-8 works

Describe the ideal solution

Would be nice if this works out of the box

Alternatives and current workarounds

set PYTHONIOENCODING=UTF-8

Additional context

No response

What I Did

safety scan --output screen > results.txt
Unhandled exception happened: 'charmap' codec can't encode character '\U0001f4dd' in position 0: character maps to <undefined>
Copy link

github-actions bot commented Jan 9, 2025

Hi @bverhoeff, thank you for opening this issue!

We appreciate your effort in reporting this. Our team will review it and get back to you soon.
If you have any additional details or updates, feel free to add them to this issue.

Note: If this is a serious security issue that could impact the security of Safety CLI users, please email [email protected] immediately.

Thank you for contributing to Safety CLI!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant