title: Why does debugging with lldb in VSCode garble chinese characters?
body: <p>I dabbled with Rust today and when I tried to print text with chinese characters using <code>println!</code> it renders weird characters to the VSCode debug terminal.</p>
  <p>I thought the problem would go away after installing language pack, but no such luck. Perhaps additional configuration is needed. It seems a quirk from the VSCode side; I ran <code>cargo run</code> from a normal powershell terminal and it works fine.</p>
  <p><a href="https://i.stack.imgur.com/6fxdZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6fxdZ.png" alt="garbled text" /></a></p>
  <p><strong>main.rs</strong></p>
  <pre class="lang-rust prettyprint-override"><code>fn main() -&gt; Result&lt;(), Box&lt;dyn Error&gt;&gt; {
      println!(&quot;Test : {}&quot;, &quot;阿拉有一只猫。&quot;);
  
      Ok(())
  }
  </code></pre>
  <p><strong>launch.json</strong></p>
  <pre><code>{
      &quot;version&quot;: &quot;0.2.0&quot;,
      &quot;configurations&quot;: [
          {
              &quot;type&quot;: &quot;lldb&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;name&quot;: &quot;Debug&quot;,
              &quot;cargo&quot;: {
                  &quot;args&quot;: [
                      &quot;build&quot;,
                      &quot;--bin=test-app&quot;,
                      &quot;--package=test-app&quot;
                  ],
                  &quot;filter&quot;: {
                      &quot;name&quot;: &quot;test-app&quot;,
                      &quot;kind&quot;: &quot;bin&quot;
                  }
              },
              &quot;args&quot;: [],
              &quot;cwd&quot;: &quot;${workspaceFolder}&quot;
          },
          {
              &quot;type&quot;: &quot;lldb&quot;,
              &quot;request&quot;: &quot;launch&quot;,
              &quot;name&quot;: &quot;Debug unit tests&quot;,
              &quot;cargo&quot;: {
                  &quot;args&quot;: [
                      &quot;test&quot;,
                      &quot;--no-run&quot;,
                      &quot;--bin=test-app&quot;,
                      &quot;--package=test-app&quot;
                  ],
                  &quot;filter&quot;: {
                      &quot;name&quot;: &quot;test-app&quot;,
                      &quot;kind&quot;: &quot;bin&quot;
                  }
              },
              &quot;args&quot;: [],
              &quot;cwd&quot;: &quot;${workspaceFolder}&quot;
          }
      ]
  }
  </code></pre>