Unicode characters from a Windows console are not displayed correctly in Bamboo build logs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

Unicode characters (such as Korean characters) from a Windows console (e.g. cmd.exe or Powershell script output from a Script Task) don't display correctly. They display as question marks or other unknown characters instead even after setting the Bamboo (or remote agent) JVM to UTF-8 encoding:

診断

環境

  • Windows

回避策

  1. Ensure that the Bamboo (or remote agent that the build is running on) JVM has been correctly set to UTF-8 by following the instructions in the below knowledge-base article:
    1. How to change the wrong encoding in Bamboo that is causing crashes or characters to display incorrectly
  2. Set either the codepage for cmd.exe or the OutputEncoding for Powershell to Unicode before running further commands. E.g.

    1. cmd.exe

      chcp 65001
      dir
    2. Powershell

      [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
      dir


最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.