Terminal can't display U+E000 to U+F8FF and U+10000 afterward #17012

Closed
opened 2026-01-31 05:29:49 +00:00 by claunia · 5 comments
Owner

Originally created by @coderlol4 on GitHub (Mar 15, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.22000.556

Other Software

No response

Steps to reproduce

Add this to a Batch file and run it:

chcp 65001
echo <anything between U+E000-F8FF to U+10000 afterward>
pause

chcp 65001 is for UTF-8
This will either display as an unknown character, or if Windows's own font set supports it, it will display as default text
It doesn't matter if your font can display these characters, it will not display correctly.

Expected Behavior

The terminal should display the characters as the font displays them normally

Actual Behavior

Either displays the specified characters as unknown characters, or if Windows's own font set supports it, it will display as default text
Doesn't matter if the font supports the characters

Originally created by @coderlol4 on GitHub (Mar 15, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.22000.556 ### Other Software _No response_ ### Steps to reproduce Add this to a Batch file and run it: ``` chcp 65001 echo <anything between U+E000-F8FF to U+10000 afterward> pause ``` `chcp 65001` is for UTF-8 This will either display as an unknown character, or if Windows's own font set supports it, it will display as default text It doesn't matter if your font can display these characters, it will not display correctly. ### Expected Behavior The terminal should display the characters as the font displays them normally ### Actual Behavior Either displays the specified characters as unknown characters, or if Windows's own font set supports it, it will display as default text Doesn't matter if the font supports the characters
claunia added the Needs-TriageIssue-BugNeeds-Tag-FixNeeds-Attention labels 2026-01-31 05:29:49 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 15, 2022):

Terminal can display characters from the PUA and above 10000 just fine -- most emoji are up there, and "power line" and "nerd fonts" are camping out the PUA.

image image

do you have some specific examples of what's not working?

@DHowett commented on GitHub (Mar 15, 2022): Terminal can display characters from the PUA and above 10000 just fine -- most emoji are up there, and "power line" and "nerd fonts" are camping out the PUA. <img width="920" alt="image" src="https://user-images.githubusercontent.com/189190/158441614-3313011c-7ce4-4500-8761-112154390ff8.png"> <img width="861" alt="image" src="https://user-images.githubusercontent.com/189190/158441715-87c392a7-c3ee-4fd3-ac85-63a8c0734dd5.png"> do you have some specific examples of what's not working?
Author
Owner

@zadjii-msft commented on GitHub (Mar 15, 2022):

Did you make sure to save the file as UTF-8?

image

IIRC there was some weirdness around how cmd.exe parsed files that were encoded with utf-8(but now that I think about it, that might have been just unix line endings)

@zadjii-msft commented on GitHub (Mar 15, 2022): Did you make sure to save the file as UTF-8? ![image](https://user-images.githubusercontent.com/18356694/158442118-6ceedf67-8b9e-4d10-bb75-349daada4f37.png) ~IIRC there was some weirdness around how cmd.exe parsed files that were encoded with utf-8~(but now that I think about it, that might have been just unix line endings)
Author
Owner

@coderlol4 commented on GitHub (Mar 15, 2022):

Terminal can display characters from the PUA and above 10000 just fine -- most emoji are up there, and "power line" and "nerd fonts" are camping out the PUA.

image image

do you have some specific examples of what's not working?

 U+F897 and 🃆 U+1F0C6
Fairfax HD can display these

@coderlol4 commented on GitHub (Mar 15, 2022): > Terminal can display characters from the PUA and above 10000 just fine -- most emoji are up there, and "power line" and "nerd fonts" are camping out the PUA. > > <img alt="image" width="920" src="https://user-images.githubusercontent.com/189190/158441614-3313011c-7ce4-4500-8761-112154390ff8.png"> > > <img alt="image" width="861" src="https://user-images.githubusercontent.com/189190/158441715-87c392a7-c3ee-4fd3-ac85-63a8c0734dd5.png"> > > do you have some specific examples of what's not working?  U+F897 and 🃆 U+1F0C6 Fairfax HD can display these
Author
Owner

@coderlol4 commented on GitHub (Mar 15, 2022):

Did you make sure to save the file as UTF-8?

image

IIRC there was some weirdness around how cmd.exe parsed files that were encoded with utf-8(but now that I think about it, that might have been just unix line endings)

I made sure

@coderlol4 commented on GitHub (Mar 15, 2022): > Did you make sure to save the file as UTF-8? > > ![image](https://user-images.githubusercontent.com/18356694/158442118-6ceedf67-8b9e-4d10-bb75-349daada4f37.png) > > ~IIRC there was some weirdness around how cmd.exe parsed files that were encoded with utf-8~(but now that I think about it, that might have been just unix line endings) I made sure
Author
Owner

@coderlol4 commented on GitHub (Mar 15, 2022):

I am guessing it's because the command line (cmd.exe) itself and not Windows Terminal

@coderlol4 commented on GitHub (Mar 15, 2022): I am guessing it's because the command line (cmd.exe) itself and not Windows Terminal
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17012