Hi @Calle_Hedberg and @Jay
I’ve spent the day on this and tested these Tomcat versions:
- Tomcat 8.5.34
- Tomcat 8.5.46
- Tomcat 9.0.26
All of these work properly on Linux, so I don’t think this is a problem with the DHIS2 core software specifically. I suspect it is the Java encoding in Windows that is tripping this up. Tomcat recently changed to falling back to the system default if it is not provided across all major tomcat channels (8.0.x, 8.5.x, and 9.0.x).
Could you please provide the output of:
java -XshowSettings:properties -version
I am specifically interested in the file.encoding
property.
If that is set to windows-1252
(or anything except UTF-8
/UTF8
) then doing this in tomcat/bin/setenv.bat
should do the trick:
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8"
Hope this helps and hearing back from you with the requested information.
Cheers
/v.