Skip to content

Integrated Terminal can not display and input Chinese word #8892

Closed

Description

@archer-trek
  • 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

Activity

  1. ZCShou commented on Jul 8, 2016

    @ZCShou

    Can Display but can not input on Windows 10!

  2. Tyriar commented on Jul 8, 2016

    @Tyriar
    Contributor

    @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 (@ZCShou) see #7045

  3. added
    info-needed
    terminal
    on Jul 8, 2016
  4. ZCShou commented on Jul 9, 2016

    @ZCShou

    Daniel Imms (@Tyriar) font set for the terminal is default,but IME is not

  5. archer-trek commented on Jul 10, 2016

    @archer-trek
    Author

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

  6. Tyriar commented on Jul 11, 2016

    @Tyriar
    Contributor

    @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'"
  7. archer-trek commented on Jul 12, 2016

    @archer-trek
    Author

    Daniel Imms (@Tyriar) No, it doesn't work.

    image

  8. Tyriar commented on Jul 12, 2016

    @Tyriar
    Contributor

    @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
  9. archer-trek commented on Jul 12, 2016

    @archer-trek
    Author

    Daniel Imms (@Tyriar) Can display but can't input.

    image

  10. Tyriar commented on Jul 12, 2016

    @Tyriar
    Contributor

    @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

  11. archer-trek commented on Jul 13, 2016

    @archer-trek
    Author
  12. ZCShou commented on Jul 14, 2016

    @ZCShou

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

  13. Tyriar commented on Jul 14, 2016

    @Tyriar
    Contributor

    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.

  14. alexdima commented on Aug 16, 2016

    @alexdima
    Member

    Daniel Imms (@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

  15. Tyriar commented on Aug 16, 2016

    @Tyriar
    Contributor

    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). Peng Lyu (@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 👍

  16. yangg commented on Oct 13, 2016

    @yangg

    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
  17. Tyriar commented on Apr 20, 2017

    @Tyriar
    Contributor

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

  18. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

info-neededterminal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions