Cursor inline terminal output garbled code

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

in cursor ide, exec mvn command, inline terminal output garbled code for Chinese content

Steps to Reproduce

  1. I have set default terminal to pwsh 7.4.x in cursor IDE
  2. I set $PROFILE content as fellow. aim to all output UTF-8

设置控制台代码页为 UTF-8

chcp 65001 > $null

设置 PowerShell 输出编码为 UTF-8

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

可选:强制 Maven 和 Java 使用 UTF-8

$env:MAVEN_OPTS = “-Dfile.encoding=UTF-8”
$env:JAVA_TOOL_OPTIONS = “-Dfile.encoding=UTF-8”

提示信息,确认已加载配置

Write-Host “:white_check_mark: PowerShell 已初始化为 UTF-8 编码环境” -ForegroundColor Green

  1. when i tell curosr to exec: mvn clean compile -pl crm-data-archive

[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 38 source files with javac [debug target 21] to target\classes
[INFO] ��������·���з�����һ�����������������������
��ע������δ�����а�� javac ���ܻ������ע������
�������ٰ�����ָ����һ���������� (-processor)��
��ָ��������·�� (–processor-path, --processor-module-path)��
����ʽ��������ע���� (-proc:only, -proc:full)��
��ʹ�� -Xlint:-options ���ش���Ϣ��
��ʹ�� -proc:none ������ע������
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.998 s
[INFO] Finished at: 2025-11-28T23:45:55+08:00

Expected Behavior

Chinese content display ok in inline terminal

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.36 (system setup)
VSCode Version: 1.105.1
Commit: 9cd7c8b6cebcbccc1242df211dee45a4b6fe15e0
Date: 2025-11-26T03:43:48.079Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.22631

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report.

Let’s narrow it down:

  1. Please show how the output looks in the regular Terminal (View > Terminal) in Cursor. Does Chinese display correctly there?
  2. Try executing the following manually in the inline terminal before mvn:
    • chcp 65001
    • [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
    • $OutputEncoding = [System.Text.Encoding]::UTF8
      Let me know if anything changes.
  3. Switch the shell to cmd.exe or Git Bash and check the inline terminal.
  4. Specify the font in the settings (editor.fontFamily and terminal.integrated.fontFamily). Try any font that supports CJK and check the result.
  5. Provide a minimal example (e.g., echo 你好) in both the inline and regular terminal + screenshots of both.
  6. If possible, send the terminal settings from settings.json (terminal.integrated.*) and logs from Developer: Toggle Developer Tools (Console tab) when reproducing the issue.

Let me know the results of these checks.