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

display error with non-ASCII characters on windows 1703 #1339

Closed
Himyth opened this issue Apr 9, 2017 · 19 comments
Closed

display error with non-ASCII characters on windows 1703 #1339

Himyth opened this issue Apr 9, 2017 · 19 comments
Labels
👆 ConEmu Upstream issue in ConEmu.

Comments

@Himyth
Copy link

Himyth commented Apr 9, 2017

after upgrade to windows creator update which is version 1703, the display is no longer right.

when i trying to ls the directory, it output ? instead of the non-ASCII characters, which is behave the same for both Chinese and Japanese. but dir command work fine.
image

here is the output byte sequence of both command. I test this in another laptop with windows 10 version 1607, the output byte sequences are identical, and display is right:
image

and if i type Chinese directly to the cmder, every character i type, the cursor will go right a little bit more than character's width, like they are getting fatter, which is not. in the following screenshots, the white-space between Chinese characters and cursor is not manually added. it just come out of nowhere.
image
image
image

it seems these has something to do with the display, because if i vim some file and type Chinese, despite the display all goes wrong, the content stays correct.

the problem seems to be ConEmu.exe, i got the same result if i run ConEmu.exe directly. any ideas?

@tszyjie
Copy link

tszyjie commented Apr 13, 2017

u need
chcp 65001

@Himyth
Copy link
Author

Himyth commented Apr 13, 2017

no luck with that... @tszyjie

@tszyjie
Copy link

tszyjie commented Apr 13, 2017

snipaste20170413_112320

@tszyjie
Copy link

tszyjie commented Apr 13, 2017

snipaste20170413_112832
@Himyth

@Himyth
Copy link
Author

Himyth commented Apr 13, 2017

thx! that works with the display. but type Chinese still looks fatter than it should be
image

i think maybe it has something to do with the new render mechanism in 1703?

@tszyjie
Copy link

tszyjie commented Apr 13, 2017

default:
snipaste20170413_114426
but
after execute chcp 65001
snipaste20170413_114455

By the way:
18

@tszyjie
Copy link

tszyjie commented Apr 13, 2017

or try to change 'Main console font'
09

https://1drv.ms/u/s!AhgDJ1s9sY7dgbpplOA4ZVuCBorlDA
@Himyth

@Himyth
Copy link
Author

Himyth commented Apr 13, 2017

switching to powershell, and every thing work now! thx~

@jrappen
Copy link
Contributor

jrappen commented Apr 19, 2017

Free CJK fonts:

@40huo
Copy link

40huo commented Apr 24, 2017

Same problem and changing font doesn't work.

@loveely7
Copy link

loveely7 commented Apr 24, 2017

Same problem in ConEmu.
I solved it by using the old version console.
image

@Himyth
Copy link
Author

Himyth commented Apr 24, 2017

@Victor97 perfect solution! thx

@kevinzfjiang
Copy link

@Victor97
that would make not working on bash on ubuntu feature:

Unsupported console settings. In order to use this feature the legacy console must be disabled.

@amazecc
Copy link

amazecc commented May 31, 2017

  • When i open it with powershell, it shows that this is what i do not like
    qq 20170531105644
  • can it show with this and solve the problem?
    qq 20170531105600

@amazecc
Copy link

amazecc commented May 31, 2017

  • It can enter the Chinese, but can also delete the "$", enter the Chinese double quotation marks, delete the text will be a problem
    qq 20170531110706
    qq 20170531110648

@hijkzzz
Copy link

hijkzzz commented Sep 17, 2017

mark

1 similar comment
@lsh6372
Copy link

lsh6372 commented Nov 21, 2017

mark

@Stanzilla Stanzilla added the 👆 ConEmu Upstream issue in ConEmu. label Nov 25, 2017
@jdhao
Copy link

jdhao commented Nov 22, 2018

Do not produce noise by using mark @hijkzzz , @tiakia , @lsh6372

@windicold
Copy link

windicold commented Sep 20, 2023

  • It can enter the Chinese, but can also delete the "$", enter the Chinese double quotation marks, delete the text will be a problem
    qq 20170531110706
    qq 20170531110648

try to excecute chcp 936, and then seems to solve the problem you mentioned in deleting text mixed with non-ASCII chars.
so just edit the cmder startup config: user-profile.cmd, add chcp 936>nul
if not use cmd and bash or anyelse, modify the custom task startup command:

  • cmd /c [task_command] -> cmd /c "chcp 936>nul & [task_command]"

task startup command
@amazecc , @hijkzzz , @tiakia , @lsh6372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 ConEmu Upstream issue in ConEmu.
Projects
None yet
Development

No branches or pull requests