Title: Non-ASCII char support for Windows terminals · Issue #622 · microsoft/vscode-java-debug · GitHub
Open Graph Title: Non-ASCII char support for Windows terminals · Issue #622 · microsoft/vscode-java-debug
X Title: Non-ASCII char support for Windows terminals · Issue #622 · microsoft/vscode-java-debug
Description: When launching in integrated/external terminal, the debugger passes commands to vscode, and vscode assembles and sends it to the terminal. But if there's non-ascii char in code/path, the java process will have unexpected behavior, becaus...
Open Graph Description: When launching in integrated/external terminal, the debugger passes commands to vscode, and vscode assembles and sends it to the terminal. But if there's non-ascii char in code/path, the java proce...
X Description: When launching in integrated/external terminal, the debugger passes commands to vscode, and vscode assembles and sends it to the terminal. But if there's non-ascii char in code/path, the java p...
Opengraph URL: https://github.com/microsoft/vscode-java-debug/issues/622
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Non-ASCII char support for Windows terminals","articleBody":"When launching in integrated/external terminal, the debugger passes commands to vscode, and vscode assembles and sends it to the terminal. But if there's non-ascii char in code/path, the java process will have unexpected behavior, because of bad Unicode support in Windows. \r\n\r\nEither VS Code or the extension should do something to cover these cases. \r\n\r\n## Example\r\nFolder structure:\r\n```bash\r\n中文目录\r\n├── Hello.class\r\n└── Hello.java\r\n0 directories, 2 files\r\n```\r\n\r\nContent of file `中文目录/Hello.java`:\r\n```java\r\npublic class Hello {\r\n public static void main(String[] args) {\r\n System.out.println(\"中文\");\r\n }\r\n}\r\n```\r\n\r\n### a) on Mac OSX\r\nWorks as expected\r\n```bash\r\n$> java -cp 中文目录 Hello\r\n中文\r\n```\r\n### b) on Windows\r\n#### Non-ASCII char in classpath\r\nClasspath is not correctly recognized by Java, if it contains non-ascii char.\r\n```cmd\r\nD:\\Test>java -cp 中文目录 Hello\r\nError: Could not find or load main class Hello\r\n```\r\n\r\n#### Non-ASCII char in stdout\r\ncd into the folder, the classpath is correctly recognized now, but the terminal fails to print non-ascii chars. \r\n```cmd\r\nD:\\Test>cd 中文目录\r\n\r\nD:\\Test\\中文目录>java -cp . Hello\r\nä??æ??\r\n```\r\nTo display non-ascii char in Windows terminals, you have to modify the `code page`, see https://ss64.com/nt/chcp.html\r\n\r\nWorkaround: set code page to 65001 (utf-8)\r\n```cmd\r\nD:\\Test\\中文目录>chcp 65001\r\nActive code page: 65001\r\n\r\nD:\\Test\\中文目录>java -cp . Hello\r\n中文\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/Eskibear","@type":"Person","name":"Eskibear"},"datePublished":"2019-08-07T03:26:29Z","url":"https://github.com/microsoft/vscode-java-debug/issues/622"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e2518ac9-3e10-a821-f033-fc0532d45e11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED3C:22FDB5:1A8FF6:23BC6B:6B073B01 |
| html-safe-nonce | 88e2e3503325b7e6d9205e45f0f35f6f60db3cdfe9886f3f107f809df55dbf22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDNDOjIyRkRCNToxQThGRjY6MjNCQzZCOjZCMDczQjAxIiwidmlzaXRvcl9pZCI6Ijg3NTU5NTIxNzM3NTU4NzQwNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 347102ea7b895ce4f0bc98b09bc0141425c789687f1bd97564d14fce3b94390e |
| hovercard-subject-tag | issue:477687268 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-java-debug/622/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c4fd16004aca3278a2c9a15e508909e6b269c643c5087541d7e564b435051a8/microsoft/vscode-java-debug/issues/622 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c4fd16004aca3278a2c9a15e508909e6b269c643c5087541d7e564b435051a8/microsoft/vscode-java-debug/issues/622 |
| og:image:alt | When launching in integrated/external terminal, the debugger passes commands to vscode, and vscode assembles and sends it to the terminal. But if there's non-ascii char in code/path, the java proce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eskibear |
| hostname | github.com |
| expected-hostname | github.com |
| None | d97a1befc96fc1512839eca15eb541061d491301144c9168e2985a8580319a49 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-java-debug git https://github.com/microsoft/vscode-java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102584737 |
| octolytics-dimension-repository_nwo | microsoft/vscode-java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102584737 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-java-debug |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d28643426bfe8d1692f8788961b8217e9003f493 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width