-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
UTF-8 Java Properties upload broken #5083
Comments
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
Maybe the existing file is iso-8859-1 encoded? What file format do you use? How do you upload? |
The existing file is UTF-8 encoded and I'm using a Java Properties (UTF-8) format. I'm uploading the translation using the "Files" > "Upload translation" button in a language. |
I mean which upload method do you use... |
The upload method is "add as translation" |
Can you please share the uploaded file? It seems that it's detected as iso-8859-1 instead of UTF-8. Maybe it has encoding error or there is something wrong with the detection. |
There is no unicode char in there which could break... |
That one works fine in my tests. The content looks like something (mis-)detectcs it as iso-8859-1. It might be a bug in chardet on the specific file you are using. |
|
How to reproduce that? |
@nijel I don't know ... I only uploaded the translations, these are my settings: |
The most likely suspect is still chardet here as the detection is always in place. Unfortunately, the file in #5083 (comment) doesn't show it. Can reproduce it with that file? Having the actual uploaded file to reproduce this would help... |
@nijel Here contains the demo video and translation files: |
@GoneTone I can reproduce this if the file format is configured to ISO-8859-1, and it's expected in this case - the replace upload method does no processing of the file. When I switch file format in Weblate to UTF-8, it is shown correctly and the replace upload works fine. What still seems to be broken is regular upload though, what probably matches behavior @Nick-kel was describing initially. |
It seems to be the most common variant used these days, so adjust autodetection to it. Issue #5083
Thank you for your report, the issue you have reported has just been fixed.
|
If I upload something to a language in Weblate, the source language works very well in UTF-8 (e.g. a § is displayed correctly). But if I upload a translation to a "normal" language, it isn't in UTF-8 and in front of a § there's a weird character:
I'm using the newest version of Weblate
The text was updated successfully, but these errors were encountered: