Skip to content
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

[Bug]: emoji/text rendering issue #49

Open
4 tasks done
flatlined opened this issue Nov 23, 2024 · 6 comments
Open
4 tasks done

[Bug]: emoji/text rendering issue #49

flatlined opened this issue Nov 23, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@flatlined
Copy link

Before Start

  • You are using the latest version of PSCompletions.
  • You have read this repository's README file.
  • You have search for related issues in Issues.
  • You have visit https://pscompletions.pages.dev/

What Powershell version are you using?

PowerShell

What system are you using?

Windows

Steps to reproduce

Install psc, import it, open the menu

What is expected?

Proper rendering if all text / glyphs.

What is actually happening?

image
Text characters render normally. Emoji and other glyphs do not.

Any additional comments?

The Beta option in Regional Settings in the Control Panel is not checked.
Emoji do render normally in the terminal, but not in the psc menu.
I have tried this with my full Powershell profile (as seen in the image above), with an empty profile except for Import-Module PSCompletions, and with an empty profile except for

Import-Module PSCompletions
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

or

$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
Import-Module PSCompletions

but all variations fail to render emoji properly.

@flatlined flatlined added the bug Something isn't working label Nov 23, 2024
@abgox
Copy link
Owner

abgox commented Nov 24, 2024

  • Are you using Windows Terminal Preview?
  • There is a rendering problem in Windows Terminal Preview, but it works fine in Windows Terminal
  • It probably a bug in Windows Terminal Preview.

image

@abgox
Copy link
Owner

abgox commented Nov 24, 2024

$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding

  • Actually, the output encoding problem only exists in Windows Terminal (Preview), other terminal tools like Tabby, Hyper don't have rendering issues.

@flatlined
Copy link
Author

Yup! I was using preview, and can confirm that the non-preview version works.
Thank you!

@abgox
Copy link
Owner

abgox commented Nov 24, 2024

  • It's a bug in Windows Terminal Preview, I'll open an issue in the terminal repository and wait for a fix.
  • Now, you can try to customize it to other available characters.

@abgox
Copy link
Owner

abgox commented Nov 24, 2024

microsoft/terminal#18242

@abgox abgox pinned this issue Nov 27, 2024
@abgox
Copy link
Owner

abgox commented Nov 27, 2024

Related to #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants