F
F
Fedor Kolov2014-07-07 15:06:53
Java
Fedor Kolov, 2014-07-07 15:06:53

Is there a solution to the problem of changing the encoding (Cyrillic) when building maven?

I have a maven project in java. In the program code, a term is formed that contains the Cyrillic alphabet.
If you build a project from the studio, the line in the project is displayed perfectly.
But if you use maven install clean to build from the console, the entire encoding changes and the string is displayed incorrectly. And it doesn't show up in the source codes in the studio.
Project in utf-8 encoding.
Windows 7 x64 system.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
anyd3v, 2014-07-07
@anyd3v

maven.apache.org/general.html

<project>
  ...
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  ...
</project>

Does not help?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question