Upsource 2020.1 Help

Charset (character encoding) problem: text is displayed incorrectly

Non-Latin characters in commit messages or file contents are displayed as squares or unknown characters.


The default character encoding in Upsource is UTF-8, so if your VCS repository stores commit messages or files in a different type of encoding than UTF-8 then some characters may not render.

Change the character encoding in Upsource to match that of your VCS repository.

  1. Stop Upsource.

  2. Open the configuration file upsource-frontend.jvmoptions located in the <upsource_home>/conf/upsource-frontend directory. If the file does not exist, rename the file upsource-frontend.jvmoptions.dist to upsource-frontend.jvmoptions.

  3. Change the value of the property -Dfile.encoding from UTF-8 to the desired charset. If the property doesn't exit, add it to the end of the file.

    For example: -Dfile.encoding=cp1251.

  4. Save and close the file.

  5. Start Upsource.

Last modified: 02 April 2021