PythonScript icon indicating copy to clipboard operation
PythonScript copied to clipboard

Unicode characters in message box not displayed correctly

Open alankilborn opened this issue 2 years ago • 2 comments
trafficstars

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.

alankilborn avatar Nov 28 '22 14:11 alankilborn

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?

Ekopalypse avatar Nov 30 '22 09:11 Ekopalypse

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

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

alankilborn avatar Nov 30 '22 12:11 alankilborn