-
Notifications
You must be signed in to change notification settings - Fork 109
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
"lean encrypt" does not work with Chinese comment #493
Comments
Hey @pizikuan ! Could you please share a file with the portion of |
import json class MyConfig: |
Hey @pizikuan ! I tested in my local (using the latest version of lean-cli) the encrypt command with a file containing that portion of code you provided and it worked (both encrypt and decrypt, using both UTF-8 and GB2312 encodings). Could you please retry encrypting the project that was failing using the latest version of lean-cli? |
It works,thank you.在 2024年9月9日,22:00,Ricardo Andrés Marino Rojas ***@***.***> 写道:
Hey @pizikuan !
I tested in my local (using the latest version of lean-cli) the encrypt command with a file containing that portion of code you provided and it worked (both encrypt and decrypt, using both UTF-8 and GB2312 encodings). Could you please retry encrypting the project that was failing using the latest version of lean-cli?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
lean encrypt xxxxx --key "D:\Backup\quantconnect_encryt.txt"
Error: Could not encrypt project D:\Work\QuantConnect\xstrategy: Failed to encrypt file
D:\Work\QuantConnect\xxxxx\base.py with error 'gbk' codec can't decode byte 0xa1 in position 523: illegal
multibyte sequence
lean encrypt does not work with Chinese comment. "position 523" is the first Chinese character in this file with UTF8 encoding.
The text was updated successfully, but these errors were encountered: