documentation home

FAQ  Special characters don't display correctly


Problem

When you use special characters such as é, è, à in your pom file (e.g., in the title or in the description of HTTP error codes), they appear scrambled in the output.

Solution

In order to use special characters with Maven, you need to set the file encoding used by Maven to UTF8.

You can do this as follows (on the command line):

Windows : set MAVEN_OPTS=%MAVEN_OPTS% -Dfile.encoding="UTF-8"
Linux/Mac : export MAVEN_OPTS="$MAVEN_OPTS -Dfile.encoding="UTF-8""