Skip to content

Does java debug support chinese words? #590

Closed
@EricCD-S

Description

@EricCD-S

I am writing a java debug client and when my test.java prints chinese words, i got ������ in dap response. i tried different encoding method but none of them work. Are there any settings i missed? here are my test.tava and reponse i got.

test.java:
public class test {
public static void main(String[] args) {
System.out.println("这是一个测试");
}
}

responses:

UTF-8:Content-Length: 177

{"event":"output","body":{"category":"stdout","output":"����һ������\r\n","variablesReference":0,"line":0,"column":0,"type":"output"},"seq":9,"type":"event"}

ISO_8859_1:Content-Length: 177

{"event":"output","body":{"category":"stdout","output":"����һ������\r\n","variablesReference":0,"line":0,"column":0,"type":"output"},"seq":9,"type":"event"}

GBK:Content-Length: 177

{"event":"output","body":{"category":"stdout","output":"锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷\r\n","variablesReference":0,"line":0,"column":0,"type":"output"},"seq":9,"type":"event"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions