Reputation: 4919
This XML structure should be OK i think:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
...
<name>áéééöüúű</name>
If this XML is opened in an XML viewer, or a simple browser gives a fine result, but executing a mvn command result:
[INFO] Building ßÚÚÚ÷Ř˙ű 0.6
Do not get how can i force mvn to print in proper way these characters. Any idea? Or is it not possible maybe (without rewriting the source)?
Upvotes: 0
Views: 746
Reputation: 9402
It looks from your comments that you're using Windows. Windows command line doesn't not support UTF-8 nor (paradoxically) Windows-XXXX encodings.
Use -Dfile.encoding=cp852
(or -Dfile.encoding=cp850
, or -Dfile.encoding=cp437
, or any other of these).
Upvotes: 2
Reputation: 6853
Might be your default system encoding is a single byte encoding. Try and tell Maven explicitly to use UTF-8 via the MAVEN_OPTS environment variable by adding -Dfile.encoding=UTF-8
to it.
Upvotes: 1