Skip to content

Conversation

KeerthanaAbhi
Copy link

Fixed Unicode Print Issue:
In utils.py, you updated the show_messages function to handle UnicodeEncodeError when printing messages. Now, if a Unicode error occurs (such as when printing emojis or non-ASCII characters), the output is re-encoded to UTF-8 and printed safely. This prevents crashes or garbled output on terminals that do not support Unicode natively.

Added Unicode Test:
You created a new file test_unicode to test the show_messages function with a message containing emojis. This ensures that the Unicode handling fix works as expected.

These changes improve the robustness of your message display, especially when handling Unicode content.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

2 participants