I’m facing problems with the UTF-8 encoding on Heroku. I need to pass the argument -encoding UTF-8 to javac while compiling.
How can I achieve it?
Seems like a stupid and simple question but couldn’t find any solution online.
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you’re using Maven, you can pass compiler arguments using the maven-compiler-plugin like this:
(I didn’t actually test this snippet). Doc is here:
http://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html