PythonScript
PythonScript copied to clipboard
Unicode characters in message box not displayed correctly
Using 64-bit, 3.10.4, when using a Unicode literal character in the notepad.messageBox() strings, the character is not displayed correctly:

from:
notepad.messageBox('▶ bullet', '')
Interestingly, notepad.prompt() is much better, having a problem only in the console window:

from:
notepad.prompt('▶ bullet', '▶ bullet2', '▶ bullet3')
First noticed in 64-bit PS 2.0 before trying in PS3.
The console issue is a font issue.

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?
would need to be one version for PY2 and one for PY3
Luckily that's just what the plugin already offers. :-)