Change8
Error3 reports

Fix UnicodeEncodeError

in Rich

Solution

UnicodeEncodeError in rich arises when it attempts to print Unicode characters to a terminal or file that doesn't support them, often due to an incorrect encoding setting. To fix this, explicitly set the environment's encoding to UTF-8 before running your script, such as through `chcp 65001` in Windows before running the Python command, or by setting the PYTHONIOENCODING environment variable to utf-8. Ensure your output stream (terminal or file) also supports UTF-8.

Timeline

First reported:Jun 13, 2025
Last reported:Dec 4, 2025

Need More Help?

View the full changelog and migration guides for Rich

View Rich Changelog