Title: VSCode Java Debug Console in Terminal Not Showing Unicode Characters · Issue #524 · microsoft/vscode-java-debug · GitHub
Open Graph Title: VSCode Java Debug Console in Terminal Not Showing Unicode Characters · Issue #524 · microsoft/vscode-java-debug
X Title: VSCode Java Debug Console in Terminal Not Showing Unicode Characters · Issue #524 · microsoft/vscode-java-debug
Description: If the launch.json file for the project is changed to have the console property set to integratedTerminal for the launch configuration, any Unicode characters printed to said terminal with will be replaced with plain-text question marks....
Open Graph Description: If the launch.json file for the project is changed to have the console property set to integratedTerminal for the launch configuration, any Unicode characters printed to said terminal with will be ...
X Description: If the launch.json file for the project is changed to have the console property set to integratedTerminal for the launch configuration, any Unicode characters printed to said terminal with will be ...
Opengraph URL: https://github.com/microsoft/vscode-java-debug/issues/524
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VSCode Java Debug Console in Terminal Not Showing Unicode Characters","articleBody":"If the `launch.json` file for the project is changed to have the `console` property set to `integratedTerminal` for the launch configuration, any Unicode characters printed to said terminal with will be replaced with plain-text question marks. This is happening because the VSCode `Terminal` being started is using the default Windows code page of `65000`, which is `ASCII`, not `65001` which is `UTF-8`.\r\n\r\n##### Environment\r\n- Operating System: Windows 10 1809 Build 17763.253\r\n- JDK version: 10.0.2\r\n- Visual Studio Code version: 1.30.2\r\n- Java extension version: 0.5.0\r\n- Java Debugger extension version: 1.16.0\r\n\r\n##### Steps To Reproduce\r\n1. Use command window (F1 key by default) to select `Java: Create Java Project`; use it to create a new project called `JavaDebugConsoleIssue`.\r\n2. Inside the `main` method generated in the `App.java` file of the `app` package, paste the following line.\r\n```java\r\nSystem.out.println(\"\\u26a1\\u2661\");\r\n```\r\n3. Change the `launch.json` file within the `.vscode` folder to include a setting in the launch configuration like so: `\"console\": \"integratedTerminal\"`.\r\n4. Run the project, and see that the symbols actually printed to the console are simply question marks in the place of where the characters are supposed to be.\r\n\r\n[Java Debug Console Issue Reproduction.zip](https://github.com/Microsoft/vscode-java-debug/files/2774893/Java.Debug.Console.Issue.Reproduction.zip)\r\nI don't think logs for this issue will really be helpful, because the problem is with something that is not done, not with something that is not working.\r\n\r\n##### Current Result\r\n```\r\nPS C:\\Users\\alexf\\Documents\\Visual Studio Code\\Workspaces\\Java Debug Console Issue> cd 'c:\\Users\\alexf\\Documents\\Visual Studio Code\\Workspaces\\Java Debug Console Issue'; & 'C:\\Program Files\\Java\\jdk-10.0.2\\bin\\java' '-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:62607' '-Dfile.encoding=UTF-8' '-cp' 'C:\\Users\\alexf\\AppData\\Roaming\\Code\\User\\workspaceStorage\\881c58722dff86f4979c37a374ece66d\\redhat.java\\jdt_ws\\jdt.ls-java-project\\bin' 'app.App'\r\n??\r\n```\r\n\r\n##### Expected Result\r\n```⚡♡```\r\n\r\n##### Additional Information\r\nEvery other type of `Terminal`, including the integrated `PowerShell Terminal` that can be launched through the VSCode menus supports running equivalent code to generate proper Unicode character output. I cannot use the VSCode `Debug Console`, as it does not support input streams, which my project requires. Also, running the command `chcp 65001` in the terminal after a run of the program will cause subsequent runs to display the proper characters.","author":{"url":"https://github.com/TheFanatr","@type":"Person","name":"TheFanatr"},"datePublished":"2019-01-19T00:11:05Z","url":"https://github.com/microsoft/vscode-java-debug/issues/524"}
| 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:19e80f7e-ae49-2cb8-fb1c-978d218d6d96 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF92:D7AB4:112905:1785B2:6B074495 |
| html-safe-nonce | 6e16b654865b9067af425b809fdf1360cb05e3d80d243550224f82faaee9634b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjkyOkQ3QUI0OjExMjkwNToxNzg1QjI6NkIwNzQ0OTUiLCJ2aXNpdG9yX2lkIjoiMjU2MTc1MjM0OTUwOTM3MTAyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9562fd585aeeec8ad8a7b1829e80ec8d31d6b1433cca8bacd83b9c88cdd15513 |
| hovercard-subject-tag | issue:400934957 |
| 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/524/issue_layout |
| twitter:image | https://opengraph.githubassets.com/70af160cfc4c4c40a5a776c682e24c885c7dfde0745bdebbd7c5891a8b73cd2a/microsoft/vscode-java-debug/issues/524 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70af160cfc4c4c40a5a776c682e24c885c7dfde0745bdebbd7c5891a8b73cd2a/microsoft/vscode-java-debug/issues/524 |
| og:image:alt | If the launch.json file for the project is changed to have the console property set to integratedTerminal for the launch configuration, any Unicode characters printed to said terminal with will be ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TheFanatr |
| hostname | github.com |
| expected-hostname | github.com |
| None | e906c59266d83416af9bcc8b61b9a96e70a3a84a066bd24f6671c193dd134a04 |
| 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 | a8418b8cd1f6ecc99bee02e3f7dde540702dd08c |
| 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