terminal icon indicating copy to clipboard operation
terminal copied to clipboard

how to show c++ printf gb2312 world

Open wangwenqiangGitHub opened this issue 1 year ago • 6 comments

Windows Terminal version

No response

Windows build number

No response

Other Software

No response

Steps to reproduce

when i use this terminal show c++ printf function information about gb2312, is error

Expected Behavior

No response

Actual Behavior

when i use this terminal show c++ printf function information about gb2312, is error

wangwenqiangGitHub avatar Feb 19 '24 02:02 wangwenqiangGitHub

Charecter encoding how set GB2312 like secureCRT

wangwenqiangGitHub avatar Feb 19 '24 02:02 wangwenqiangGitHub

Charecter encoding how set GB2312 like secureCRT

wangwenqiangGitHub avatar Feb 19 '24 04:02 wangwenqiangGitHub

image

wangwenqiangGitHub avatar Feb 19 '24 04:02 wangwenqiangGitHub

image

this also can't correct show gb2312

wangwenqiangGitHub avatar Feb 19 '24 04:02 wangwenqiangGitHub

Sorry could you explain a bit more about what you're trying to accomplish here? How you have your terminal set up/?

Only guessing from the bits here, I'm guessing that you didn't pass -li to the bash commandline in your profile's settings. But there's not a lot to work with here. I'm not really sure what is expected, and what you're actually seeing.

zadjii-msft avatar Feb 19 '24 11:02 zadjii-msft

In other words, please provide us with detailed "reproduction steps". For instance you can write about:

  • Your Windows version
  • Your Windows Terminal version
  • What environment you're using (WSL, MSYS2, ...)
  • What shell you're using (bash, zsh, fish, ...)
  • How you customized your shell (oh-my-zsh, powerlevel10k, ...)
  • An example C/C++ source code that shows the problem
  • How you run your example

lhecker avatar Feb 19 '24 22:02 lhecker

In other words, please provide us with detailed "reproduction steps". For instance you can write about:

  • Your Windows version
  • Your Windows Terminal version
  • What environment you're using (WSL, MSYS2, ...)
  • What shell you're using (bash, zsh, fish, ...)
  • How you customized your shell (oh-my-zsh, powerlevel10k, ...)
  • An example C/C++ source code that shows the problem
  • How you run your example

zsh + tmux Uploading iwEcAqNwbmcDAQTRAxoF0QFxBrBs5CFlmPuL0AXCrlK1-o4AB9IUsQSOCAAJomltCgAL0TkB.png_720x720q90.jpg…

wangwenqiangGitHub avatar Feb 20 '24 02:02 wangwenqiangGitHub

iwEdAqNwbmcDAQTRBJkF0QIpBrACwyHizpObBQXCrlK2GqYAB9IUsQSOCAAJomltCgAL0Vny png_720x720q90

terminal tmux zsh and show this: iwEcAqNwbmcDAQTRAxoF0QFxBrBs5CFlmPuL0AXCrlK1-o4AB9IUsQSOCAAJomltCgAL0TkB png_720x720q90

wangwenqiangGitHub avatar Feb 20 '24 02:02 wangwenqiangGitHub

not tmux , only zsh terminal still not image

wangwenqiangGitHub avatar Feb 21 '24 10:02 wangwenqiangGitHub

A possible solution is to use UTF-8 (CP65001) code page everywhere instead of GB2312 (CP936).

image

o-sdn-o avatar Feb 21 '24 10:02 o-sdn-o

Yes, please use UTF-8. g++ doesn't support windows code pages.

carlos-zamora avatar Feb 21 '24 22:02 carlos-zamora