be sure that your IDE settings is incorrect, I think you need to check your settings again.
in the Intellij Idea for example, you must go to file --> Settings --> File Encodings , and set
IDE Encoding to UTF-8 . then you should rebuild your project and create the jar file after project rebuild .