Skip to content
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

Integrated Terminal can not display and input Chinese word #8892

Closed
archer-trek opened this issue Jul 8, 2016 · 16 comments
Closed

Integrated Terminal can not display and input Chinese word #8892

archer-trek opened this issue Jul 8, 2016 · 16 comments
Assignees
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label

Comments

@archer-trek
Copy link

  • VSCode Version: 1.3.0
  • OS Version: OS X EI Capitan 10.11.5

Can not display

Steps to Reproduce:

  1. Create a directory or file with Chinese word.
  2. Open terminal in vscode and execute ls command.

ITerm2

4bb9ab49-afe3-4049-8b62-d1b71dc5e1d7

VSCode Terminal

a1c91861-360e-44b6-8025-11b9ed184ae9

Can not input

Steps to Reproduce:

  1. Open ternimal in vscode.
  2. Input some Chinese word with system default Chinese IME.

1d1777d1-e0c9-4b5d-acd3-463dc1fdad8f

@ZCShou
Copy link

ZCShou commented Jul 8, 2016

Can Display but can not input on Windows 10!

@Tyriar
Copy link
Member

Tyriar commented Jul 8, 2016

@wzyplus this is related to the font, do you have a custom font set for the terminal? The editor's font should be the fallback which is expected to work.

@ZCShou see #7045

@Tyriar Tyriar added info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label labels Jul 8, 2016
@ZCShou
Copy link

ZCShou commented Jul 9, 2016

@Tyriar font set for the terminal is default,but IME is not

@archer-trek
Copy link
Author

@Tyriar No, I didn't change the font of the terminal. But changed the editor's font to Consolas.

@Tyriar
Copy link
Member

Tyriar commented Jul 11, 2016

@wzyplus Does the problem go away if you use the default editor.fontFamily fallbacks?

"editor.fontFamily": "Consolas, 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'"

@archer-trek
Copy link
Author

@Tyriar No, it doesn't work.

image

@Tyriar
Copy link
Member

Tyriar commented Jul 12, 2016

@wzyplus can you setup xterm.js and see if you can reproduce it in the demo?

git clone https://github.com/sourcelair/xterm.js.git
cd xterm.js
npm install
npm start
# navigate to http://0.0.0.0:3000

@archer-trek
Copy link
Author

@Tyriar Can display but can't input.

image

@Tyriar
Copy link
Member

Tyriar commented Jul 12, 2016

@wzyplus can you try toggling dev tools on vscode (Help > Toggle Developer Tools), inspecting the span/div containing the ?????? (using cursor button in top-left corner of dev tools) and get the paste in both the contents of the element and the computed font-family style?

Inspect button:

image

Computed styles tab:

image

@archer-trek
Copy link
Author

@Tyriar

image

image

@ZCShou
Copy link

ZCShou commented Jul 14, 2016

@Tyriar So does on Win10! But The lastest version can copy & paste!I have a .gif file, but upload failed!

@Tyriar
Copy link
Member

Tyriar commented Jul 14, 2016

FYI on the input side of things I've put out a PR which is mostly done, I still need to verify it on multiple-character IME compositions though, such as in Japanese. I'm not familiar with the Chinese IME systems but I think it's likely covered by the Korean/Japanese cases. xtermjs/xterm.js#175

This should hopefully land in Insiders in about a week.

@rebornix rebornix mentioned this issue Jul 20, 2016
4 tasks
@alexdima
Copy link
Member

@Tyriar Here is a wiki page I put together from various sources with examples and detailed steps on how different input methods should work, considering Word as the golden standard: https://github.com/Microsoft/vscode/wiki/IME-Test

@Tyriar
Copy link
Member

Tyriar commented Aug 16, 2016

@alexandrudima I think this issue is related to text encoding rather than the IME.

I'm familiar with Japanese and Korean IMEs from language learning so I used that experience when implementing support (which is in stable now). @rebornix did tests for Chinese, I don't think Vietnamese was tested though. You can check out xtermjs/xterm.js#175 for the testing I did before endgame.

Thanks for the resource 👍

@yangg
Copy link

yangg commented Oct 13, 2016

vs code: 1.6.0
Can not display Chinese character in git log on windows 7,
but it displays folder with Chinese character correctly.
I tried both cmd.exe & git bash.exe

"terminal.integrated.shell.windows": "bash.exe", // git bash

@Tyriar
Copy link
Member

Tyriar commented Apr 20, 2017

The situation for this should be better now as $LANG is being set.

@Tyriar Tyriar closed this as completed Apr 20, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

5 participants