-
-
Notifications
You must be signed in to change notification settings - Fork 676
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
Game logs are now encoded in UTF-8 #2880
Conversation
Changed codecForLocale() to codecForName("UTF-8") Signed-off-by: marrrrrrme6 <[email protected]>
question is, if that breaks any other codepoints? if someone has their OS set to e.g. that asian one, would that break the logs then if we decode it as UTF-8? |
For now, I've added |
The following tests were done on minecraft 1.12.2 and 1.21.1. In 1.12.2, The issue of garbled characters in sections (§) has been resolved. Chinese, accent aigu and Russian are also no problem. Special characters are no problem. Use utf-8 is not checked. PolyMC/PolyMC#968 (comment) |
Wasn't there an issue with using UTF-8 in 1.7 and earlier? |
huh. I could have sworn this was brought up before and it broke things... |
I sadly dont remember |
alright well, if we're going to add this, |
forgot to send this comment yesterday as I was thinking of asking for some feedback on discord...
from what you are describing it seems that this should work even with older versions without any issues, so I suppose its fine to blanket apply the flag to every version. I was thinking if we could have a toggle in the settings "Use UTF-8 for log files", which both adds the launch flag and configures the log reader to use UTF-8 instead of the system charset |
In https://github.com/marrrrrrme6/PrismLauncher/tree/test, I add |
This will potentially break things too. Since this also controls the encoding for loading files (at least I think it does and the name suggests that) it could mean loading files encoded differently as utf-8... |
I am not originally a C++ engineer, and I modified it based on #2419 (comment), but I don't know any more about it than that, so I would like someone to take over. |
Alright... closing this then |
fix #2419