Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

unmappable character (0xF3) for encoding UTF-8 #1435

Open
myxor opened this issue Dec 12, 2023 · 1 comment
Open

unmappable character (0xF3) for encoding UTF-8 #1435

myxor opened this issue Dec 12, 2023 · 1 comment
Labels
bug Issue/PR that involves a bug language PR / Issue deals (partly) with new and/or existing languages for JPlag minor Minor issue/feature/contribution/change

Comments

@myxor
Copy link

myxor commented Dec 12, 2023

We have some code which contains special characters in the tests and i see a lot of errors like this:

failed to parse [filename redacted] with reason: unmappable character (0xF3) for encoding UTF-8
        at de.jplag.ParsingException.wrappingExceptions(ParsingException.java:70)
        at de.jplag.java.JavacAdapter.parseFiles(JavacAdapter.java:59)
        at de.jplag.java.Parser.parse(Parser.java:25)
        at de.jplag.java.Language.parse(Language.java:47)
        at de.jplag.Submission.parse(Submission.java:249)
        at de.jplag.SubmissionSet.parseSubmissions(SubmissionSet.java:147)
        at de.jplag.SubmissionSet.parseAllSubmissions(SubmissionSet.java:103)
        at de.jplag.SubmissionSet.<init>(SubmissionSet.java:45)
        at de.jplag.SubmissionSetBuilder.buildSubmissionSet(SubmissionSetBuilder.java:78)
        at de.jplag.JPlag.run(JPlag.java:55)
        at de.jplag.cli.CLI.main(CLI.java:91)

The character mentioned is the following https://bytetool.web.app/en/ascii/code/0xf3/

@tsaglam tsaglam added bug Issue/PR that involves a bug minor Minor issue/feature/contribution/change labels Dec 13, 2023
@TwoOfTwelve
Copy link
Contributor

TwoOfTwelve commented Jan 16, 2024

@myxor
I tried to reproduce that issue using the following sample code:

class A {
        public static void main(String[] args) {
                int ó = 1;
        }
}

For me that works in both the current release version and the current develop version. This might be an issue dependent on the operating system though. Can you either send me an example code, that fails for you or try the develop version?

@tsaglam tsaglam added the language PR / Issue deals (partly) with new and/or existing languages for JPlag label Feb 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Issue/PR that involves a bug language PR / Issue deals (partly) with new and/or existing languages for JPlag minor Minor issue/feature/contribution/change
Projects
None yet
Development

No branches or pull requests

3 participants