I
I
Ivan2017-08-21 17:29:31
Java
Ivan, 2017-08-21 17:29:31

What caused the encoding to go wrong when assembling the JAR?

Hello! There is an application written in Java. Parses the site and, if necessary, sends an email. When working and running through Idea, the words in Russian were transmitted and displayed without changes, when building the project and running the Jar file, the Russian words turned into a "random mess". Where and what should be specified to fix this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
al_gon, 2017-08-21
@bessovesti

JVM Options
java -Duser.language=en -Duser.country=RU -Dfile.encoding=UTF-8
-jar
your.jar ".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question