Skip to content

Commit 46cd7a6

Browse files
committed
TPythonEngine.ExecFile should use utf8 encoding in reading the file.
1 parent 2e6faa3 commit 46cd7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/PythonEngine.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5182,7 +5182,7 @@ procedure TPythonEngine.ExecFile(const FileName: string; locals,
51825182
begin
51835183
SL := TStringList.Create;
51845184
try
5185-
SL.LoadFromFile(FileName);
5185+
SL.LoadFromFile(FileName, TEncoding.UTF8);
51865186
ExecStrings(SL, locals, globals, FileName);
51875187
finally
51885188
SL.Free;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy