redhat-developer / redhat-developer/vscode-java
How to input/output Greek characters
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
When using vscode to write a Java program, the input and output of Greek characters are garbled.
Environment
Version: 1.72.0 (system setup)
Commit: 64bbfbf67ada9953918d72e1df2f4d8e537d340e
Date: 2022-10-04T23:20:39.912Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.17763
Sandboxed: No
Java extension version: Extension Pack for Java (v0.25.3)
Steps To Reproduce
[code]
import java.util.Scanner;
public class App {
public static void main(String[] args) throws Exception {
System.out.println("Ένα Δύο Τρία");
Scanner sc = new Scanner(System.in, "utf-8");
String s = sc.nextLine();
System.out.println(s);
sc.close();
}
}
Current Result

Expected Result
The output should match what I typed.
Additional Informations
The DEBUG CONSOLE panel can output normally, but cannot input.

The same code works fine in idea.

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 Windows 上的 VS Code 1.72.0 中复现所提供的 App 程序,并将终端和 DEBUG CONSOLE 的行为与 IntelliJ IDEA 进行比较。以 DEBUG CONSOLE 作为指定的入口点,调查 Java extension 对非 ASCII 输入和输出的处理。完成标准是:输入到程序中的希腊字符能够被正确返回并显示。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100