-
Notifications
You must be signed in to change notification settings - Fork 218
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
encoding issue #155
Comments
Another interesting thing: |
The game does use different encoding for different files, due to variety of fonts that we use I believe. I'm honestly not entirely sure why GitHub sometimes has a problem and sometimes does not. However, since it's generally functioning it's something I have not spent much time looking into. I can maybe spend some time in the future figuring out what's going on. Just bigger issues at the moment, you know? Edit: Though perhaps unifying the encodings would be a good idea to look into to stop file encoding breakages that can be a real pain. |
👍 for unifying encodings. This issue can wait, maybe someone more experienced in github can sort this out |
I'll try some experiments in the coming weeks. |
Was going to close, but maybe best to leave this open as a reminder. |
Just as a reminder that the issue is still relevant - yes, it would be nice to "combine encodings." |
IMHO it would be the best to use Unicode for everything as long as the engine allows it, and if not find out why. Unicode is de facto standard everywhere nowadays and the issue is only with really old machines and that usually can be solved by a software update. Moden Unicode encodings also support all kind of glyphs, including languages that are not yet supported by PZ probably but might be in future. |
After some experiments: if you add a .gitattributes file with
the Github changesets seem to work fine. You may need to re-encode them to unicode in the git repo but after that it will be fine in any working tree. |
I didn't test it yet, but if I understand correctly, that would make files appear correctly in repo and in-game? If, so this would solve the problem we have without modification to the game itself, I'll see if that works and if I can make a PR for it. Thanks! |
Avoid encoding issue. TheIndieStone/ProjectZomboidTranslations#155
I'm trying to update russian translation to the latest PZ version but I run into a problem which I can't solve (I remember same issue was here year ago). So what issue is.
Currently all russian .txt files use windows 1251 encoding which can be read by game (text displayed normally). But for some reason files on github are broken (hieroglyphs all the way). I thought well maybe github can't display windows 1251 files but for some reason SOME files displayed normally and some aren't.
For comparison:
So question is why this happens? How do I fix it? If you download these files they displayed normally but not in repository. Also, UTF-8 works for github but game won't display them although english files encoded in UTF-8 are displayed correctly. There are no problems in displaying russian symbols in minecraft for example in UTF-8, seems like zomboid needs different encoding for each language.
The text was updated successfully, but these errors were encountered: