-
-
Notifications
You must be signed in to change notification settings - Fork 781
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
Can’t type astral plane characters #231
Comments
If you have WSL installed and have it set eg: I don't believe that Windows supports typing emoji into either powershell or cmd.exe; I see the unicode replacement character in the Microsoft Terminal Preview, cmd.exe windows and powershell.exe windows (a quick google shows lots of people having problem with this). If I write the emoji to a file using eg: vim under wsl I can It's not clear to me that wezterm is doing something wrong here! |
based on the comments from #232 I'm closing this issue, as it sounds like the OP isn't in a position to actively troubleshoot this right now, but it also doesn't sound like wezterm is necessarily at fault per my comment above. |
See also: microsoft/terminal#1503 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Describe the bug
Typing characters from outside the Basic Multilingual Plane produces a sequence of U+FFFD replacement characters instead.
Environment (please complete the following information):
To Reproduce
One approach: Windows 10’s emoji picker, Windows+., and choose one, like 💤. You probably get
��
.Another approach: WinCompose, then enter an emoji like ComposeComposezzz. You get
����
.Configuration
None.
Expected behavior
The emoji should be there.
Additional information
The typical cause of this problem is the program taking the character in as the two UTF-16 code units via WM_CHAR events, and eagerly turning them into UTF-8 rather than waiting to merge the surrogate pair. I’m not sure exactly why WinCompose yields four replacement characters and the emoji picker two, though I have a vague notion of the general reason why (WinCompose emits events in an older way).
Good related reading on solutions: vim/vim#2800, and other issues that link to it also.
The text was updated successfully, but these errors were encountered: