-
Notifications
You must be signed in to change notification settings - Fork 27
Supervisor win higher version Chinese garbled code #49
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
Comments
@wssf812 Do you have any configuration examples and how to reproduce this failure? I don't fully understand what problem you are facing. |
To reproduce simply add Chinese logs to the backend service [supervisorctl] [supervisord] [program:flexibleline_api] [rpcinterface:supervisor] The problem I encountered was that there was garbled code when writing Chinese logs in version 4.7.0, but switching to version 4.5.0 was no problem. After checking your source code, I found that the difference between the two was due to the issue with win.WriteFile, where the encoding was not specified. This is just my speculation, but from the perspective of the issue, it should be a coding exception caused by a higher version of the program. It may be a problem with the window plugin, a bug on your code, or a coding issue itself. I hope you can take a look and give me a response. Thank you |
The default encoding used is utf8 and this encoding is used to convert any byte to string. The Chinese language may not be able to convert some characters. The default behavior is to ignore such characters so as not to critically fail. |
Why is version 4.5.0 possible? I see that the address code corresponding to version 4.5.0 of the connection you sent is as follows, and there is also an error in ignoring it. I am a bit confused 4.5.0 as_bytes function Please refer to the code similar to yours in version 4.5.0 above, which also includes' ignore 'as' true' |
Supervisor-win higher version Chinese garbled code,the version used is 4.7.0.
Under 4.5.0, there will be no garbled code,Why is this?
Error info: дredis{'name': 'Ա', 'user_id': 22}
The text was updated successfully, but these errors were encountered: