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
- I have set default terminal to pwsh 7.4.x in cursor IDE
- 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 “
PowerShell 已初始化为 UTF-8 编码环境” -ForegroundColor Green
- 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