redhat-developer / redhat-developer/vscode-java

How to input/output Greek characters

未关闭
#2,728 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

caused-by-extension need verify
主要语言
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

image

Expected Result

The output should match what I typed.

Additional Informations

The DEBUG CONSOLE panel can output normally, but cannot input.
image
The same code works fine in idea.
image

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。