-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output encoding issue of the Test Runner #632
Comments
I hope it can be repaired as soon as possible. Thank you. |
@sunnynie Which part of Chinese is not display? The output? What is the version of VSCode Java redhat extension? |
me too,like #652 |
Same here, the Java Test Runner Output is not handling Unicode properly, while the standard Debug Console Output works fine. @Test
public void testEncoding()
{
System.out.println("\u00B0C");
} outputs public static void main(String[] args)
{
System.out.println("\u00B0C");
} correctly outputs |
@ALL, the root cause of this issue is that: When the Java language server compiling the source file, the file encoding will set to When running the test cases with the Test Runner, if the encoding setting is not equal with the files getting compiled, then those messy code will appear. If you hasn't set the setting "java.test.config": {
"vmargs": ["-Dfile.encoding=utf-8"]
} I'll add some detecting logics later to better solve this problem. |
This issue should be fixed in #654 & #662 . So we have several ways to set the file encoding when running tests:
"java.test.config": {
"vmargs": ["-Dfile.encoding=Cp1252"]
}, The higher ones will be overridden by the lower ones. |
Issue Type: Bug
Chinese is not supported,The output of English is acceptable.
@test
public void test(){
System.out.println("dd");
System.out.println("等待");
}
Extension version: 0.14.1
VS Code version: Code 1.31.1 (1b8e8302e405050205e69b59abb3559592bb9e60, 2019-02-12T02:20:54.427Z)
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: