You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
editor.getWordChars() doesn't work in PythonScript 3.0.14 #243
Using Notepad++ 8.4.4 x64 and PythonScript_Full_3.0.14.0_x64.zip:
editor.getWordChars() triggers this error message:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
In PythonScript 2.0.0 (using the same Notepad++ binary), the method returns a string containing the bytes/chars 0xFF-0x80, followed by z-a, _, Z-A, and 9-0 (in that order). That doesn't look like an UTF-8 string...
Activity
chcg commentedon Nov 5, 2022
See https://www.scintilla.org/ScintillaDoc.html#SCI_GETWORDCHARS
, so it needs to be checked if change in the encoding could fix that problem.
Current python 2 output:
chcg commentedon Nov 12, 2022
With python 3 after adding an iso_latin_1_to_utf8 conversion I get:
initial fix for issue #243 editor.getWordChars() doesn't work in Pyth…