UTF-8 formatting does not work when compiling code with Maven in Intellij

Asked

Viewed 53 times

1

Good afternoon, you guys,

Next, I have a Maven project in Intellij configured as follows:

Intellij

In the pom I have these configs:

      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

But when I build and run the project the letters that are in the file . properties appear like this:

inserir a descrição da imagem aqui

Someone knows how to set it up?

1 answer

1


I discovered the problem, I needed to mark UTF-8 as default for properties files:

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.