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

Unicode characters in message box not displayed correctly #262

Open
alankilborn opened this issue Nov 28, 2022 · 2 comments
Open

Unicode characters in message box not displayed correctly #262

alankilborn opened this issue Nov 28, 2022 · 2 comments

Comments

@alankilborn
Copy link

Using 64-bit, 3.10.4, when using a Unicode literal character in the notepad.messageBox() strings, the character is not displayed correctly:

image

from:

notepad.messageBox('▶ bullet', '')


Interestingly, notepad.prompt() is much better, having a problem only in the console window:

image

from:

notepad.prompt('▶ bullet', '▶ bullet2', '▶ bullet3')


First noticed in 64-bit PS 2.0 before trying in PS3.

@Ekopalypse
Copy link
Contributor

The console issue is a font issue.
image

As for the MessageBox, the underlying call uses the ANSI version. Unfortunately, the Unicode symbol does not fit here.
Changing this to MessageBoxW would mean that there would need to be one version for PY2 and one for PY3, right?

@alankilborn
Copy link
Author

would need to be one version for PY2 and one for PY3

Luckily that's just what the plugin already offers. :-)

chcg added a commit that referenced this issue Dec 10, 2022
- use unicode version of MessageBoxA -> MessageBox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants