-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 7.10, 8.10
-
Fix Version/s: 10.2
-
Component/s: nuxeoctl start/stop/admin
If a property in nuxeo.conf used an accentued character, it is wrongly encoded in the target XML file.
For example, add the following line in nuxeo.conf
nuxeo.notification.eMailSubjectPrefix=Nuxéo
It will produce this line in nxserver/config/notification-config.xml after running the command nuxeoctl configure
<eMailSubjectPrefix>Nuxéo </eMailSubjectPrefix>
The expected result is
<eMailSubjectPrefix>Nuxéo</eMailSubjectPrefix>
We are using a java.util.Properties class to read nuxeo.conf.
This class takes as input to the load() method a file in Latin-1 encoding (https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html)
There are some inputs that one can circumvent this by using a InputStreamReader object instead of an InputStream object : https://stackoverflow.com/questions/863838/java-properties-utf-8-encoding-in-eclipse
Moving with this approach