Description
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"}