terminal
terminal copied to clipboard
how to show c++ printf gb2312 world
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
Charecter encoding how set GB2312 like secureCRT
Charecter encoding how set GB2312 like secureCRT
this also can't correct show gb2312
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.
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
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
terminal tmux zsh and show this:
not tmux , only zsh terminal still not
A possible solution is to use UTF-8 (CP65001) code page everywhere instead of GB2312 (CP936).
Yes, please use UTF-8. g++ doesn't support windows code pages.
