How to configure UTF-8 encoding on Windows remote agents

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

This document will help you to configure UTF-8 encoding on Windows remote agents.

Environment

Bamboo agents running on Windows OS.

Solution

  1. Shutdown the remote agent
  2. Edit $BAMBOO_AGENT_HOME/conf/wrapper.conf
  3. Add the below lines:

    wrapper.conf
    wrapper.java.additional.#=-Dfile.encoding=utf-8
    wrapper.java.additional.#=-Dsun.jnu.encoding=utf-8

    Make sure to replace the # with the next available digit in the series of Java additionals. The numbers must be sequential for the argument to apply.

  4. Add a new environment variable in the Windows system with the following name and value:

    Environment variable nameEnvironment variable value
    JAVA_TOOL_OPTIONS

    -Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8

  5. Restart the agent and check that your system encoding changes to utf-8 from the agent's general configuration page.


Last modified on Nov 16, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.