/
How to resolve form field special character issue.
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

How to resolve form field special character issue.

Error on UI:

The above error might come when importing/saving the forms.

This happens when the JVM is using Latin1/ASCII encoding. And OpenSpecimen needs it ‘Utf8’.

Therefore the user needs to ensure :

  • JvmOptions="-Dfile.encoding=utf8;...." is correctly configured in the TOMCAT_HOME\bin\service.bat file. If not, please follow the below steps.

Note: In this document, $TOMCAT_HOME is used to refer to the absolute path of the directory containing Tomcat server resources like executable binaries (bin), configuration (conf), web applications (web apps), etc. 

  1. Open the tomcat service descriptor file “service.bat” in the $TOMCAT_HOME/bin.

  2. Add JvmOptions="-Dfile.encoding=utf8;...." and save the file.

  3. Open the command prompt with administrator privileges and go to directory >(TOMCAT_HOME\bin).

  4. Run command service install.

  5. Restart Tomcat.

  6. In the Catalina.out log file, you should see this options file.encoding=utf8.

  7. If point 6 is confirmed, reimport the form ZIP file and refresh the browser.

  8. The user should be able to see the correct characters on the screen.

 

Related content

Change database and all tables character set
Change database and all tables character set
More like this
Error saving the form.
Error saving the form.
More like this
How to fix "out of memory" error ?
How to fix "out of memory" error ?
More like this
Error :Caused by: java.sql.SQLException: ORA-28001: the password has expired
Error :Caused by: java.sql.SQLException: ORA-28001: the password has expired
More like this
How to upgrade Tomcat?
How to upgrade Tomcat?
More like this
Create Tomcat service manually
Create Tomcat service manually
More like this
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com