-
Notifications
You must be signed in to change notification settings - Fork 328
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
JPlag viewer displaying strange characters #2110
Comments
@muety Could you attach the file to the issue, so we can reproduce it easier and find the error |
This might be a conversion issue. If the student's file is not UTF-8, we try to guess the file encoding and convert it to UTF-8 in order to prevent issues where the Java compiler cannot parse the file. However, there is inherently no way to always correctly determine the file encoding if it is unknown. Thus, sometimes it is incorrectly guessed. Note: this issue can also arise if you convert the files yourself before submitting them to JPlag. Some learning platforms, such as Artemis, might also do this. |
I can't share the file, unfortunately, because I'd first have to trim sensitive information, which would potentially also modify encoding, etc. When downloading the file from ILIAS learning platform, it has UTF-8 encoding and everything looks fine regardless of which editor I open it in. Only JPlag will show those weird characters. Same for many other students (mostly using Eclipse on Windows). |
This is fixed in #2118 |
Closed by #2118. |
Original code:
JPlag viewer:
Note the wrong characters in line 28. The
.java
file is of UTF-8 encoding. When opening it in a text editor (with UTF-8 being correctly recognized as the encoding), things look normal.The text was updated successfully, but these errors were encountered: