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

Fix bug when encrypting a file with chinese characters #496

Conversation

Marinovsky
Copy link
Collaborator

@Marinovsky Marinovsky commented Sep 4, 2024

Closes #493
As pointed out here (#493), when the file to be encrypted had characters from the Chinese simplified dictionary (such as 的一是), the command encrypt threw the following exception:
charmap codec can't decode byte 0x8d in position 78: character maps to <undefined>
This PR aims to fix that bug and adds a unit test reproducing it

@Marinovsky Marinovsky force-pushed the bug-493-EncryptFailsWithChineseCharacter branch from dff292d to 2824b70 Compare September 4, 2024 22:37
Copy link
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! ✨

@Martin-Molinero Martin-Molinero merged commit 2a477a3 into QuantConnect:master Sep 5, 2024
28 checks passed
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.

"lean encrypt" does not work with Chinese comment
2 participants