We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a496ff commit d2189a1Copy full SHA for d2189a1
1 file changed
src/LibNppPlugin/NppSimpleObjects.pas
@@ -565,7 +565,7 @@ function TSelection.GetText: WideString;
565
begin
566
Chars := AnsiString(StringOfChar(#0, Self.GetLength + 1));
567
FEditor.SendMessage(SCI_GETSELTEXT, 0, PAnsiChar(Chars));
568
- Result := WideString(Chars);
+ Result := WideString(UTF8Decode(Chars));
569
// DebugWrite('TSelection.GetText', Result);
570
end;
571
{ ------------------------------------------------------------------------------------------------ }
0 commit comments