Maintenanace page bad characters

This helped me resolve the same issue.

1 Like

Thank you for letting us know and welcome to the community @sanis! :tada::tada:

Hi, Community
I also have this Invalid character which appears on the Dhis2 2.36 instance installed on a windows 2022 server. I share with you the script used on the “server” file of Tomcat 9.
What can I do to solve this problem.
Thanks

Capture d'écran 2022-05-30 18.16.19

Hi @elmoujarrade ,

  1. create setenv.bat file inside Tomcat 9.0\bin and put inside:
    set “JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8”
  2. put -Dfile.encoding=UTF-8 as shown below
  3. Restart Tomcat
  4. Open DHIS2 and log-in
  5. Do hard reset of your browser with cleaning the browsers cache : press Ctrl+R or Ctrl+shift+R (https://www.ghacks.net/2018/01/24/google-chrome-hard-reload-vs-normal-reload/)

Good luck!
regards,
Ulanbek

2 Likes

Hi, @Ulanbek
Thank you for your support.

I followed your instructions, but invalid characters persist, even after reset my browser.

Capture d'écran 2022-06-01 13.44.32
Capture d'écran 2022-06-01 13.45.52
Capture d'écran 2022-06-01 13.46.21

I must have made a mistake somewhere, I guess!

@elmoujarrade ,
Have you cleared your browser cache as well??

Normally I do reset by standing on the address bar and pressing Ctrl+R, or Ctrl+Shift+R.
Then close the browser and run again.

Additionally you can try to put following into server.xml

<Connector 
     port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443"
     compression="on"
           compressableMimeType="text/html,text/xml"
           relaxedQueryChars= "[,]"
     URIEncoding="UTF-8"/>

Try it again.

2 Likes

@Ulanbek
Thank you a lot for your valued assistance. Problem fixed.

1 Like