-
Notifications
You must be signed in to change notification settings - Fork 59
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
EclipseCompiler does not respect encoding. #73
Comments
CompilerConfig.getSourceEncoding() needs to be used also for that StandardJavaFileManager. |
tomaswolf
referenced
this issue
in tomaswolf/plexus-compiler
May 24, 2020
The JSR-199 Eclipse compiler needs to have the encoding set explicitly for its javax.tools.StandardJavaFileManager. Use the encoding configured in the CompilerConfiguration or in the compiler arguments, and fall back to the platform default only if none is given explicitly.
olamy
pushed a commit
that referenced
this issue
Jun 18, 2020
…74) The JSR-199 Eclipse compiler needs to have the encoding set explicitly for its javax.tools.StandardJavaFileManager. Use the encoding configured in the CompilerConfiguration or in the compiler arguments, and fall back to the platform default only if none is given explicitly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since 2.8.6 it reads the files with default charset:
plexus-compiler/plexus-compilers/plexus-compiler-eclipse/src/main/java/org/codehaus/plexus/compiler/eclipse/EclipseJavaCompiler.java
Line 328 in 0df7395
Try compiling the attached file when default charset is ISO-8859-1.
Utf.java.txt
The text was updated successfully, but these errors were encountered: