-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Feature Request: Character Set translation #10870
Comments
I'm curious about your specific use case. Windows Terminal uses the Windows console host to handle all of its translation, and that supports all of the codepages and data encodings that the Windows console has always supported. For example, this does work: #include <windows.h>
int main() {
SetConsoleOutputCP(932);
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), "\xA6", 1, nullptr, nullptr);
return 0;
} 0xA6 is the Shift-JIS encoding (notably: not UTF-8!) for that glyph. |
(Which application are you using that is not functioning properly without the ability to switch the encoding?) |
@DHowett I can reproduce the problem I met.
|
I also tried $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
$ locale -a
C
C.UTF-8
POSIX
en_US.utf8
zh_HK.utf8
zh_TW
zh_TW.big5
zh_TW.utf8
$ cat big5-example.txt | iconv -f big5 -t utf8
測試
$ luit -encoding big5 cat big5-example.txt
4z8U
$ LC_ALL=zh_TW.big5 luit cat big5-example.txt
4z8U
$ LC_ALL=zh_TW.big5 luit -encoding big5 cat big5-example.txt
4z8U |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Description of the new feature/enhancement
In PuTTY, there is a convenient feature called Character set translation. See below:
Sometimes we have to deal with some files or programs that can only deal with non-unicode characters. In Windows Terminal, it can only deal with UTF-8 character set. This limitation will lead us unable to deal with that kind of situations.
Proposed technical implementation details (optional)
The text was updated successfully, but these errors were encountered: