Open
Description
The doc strings are not utf8 encoded as python expects them to be and this causes issues when doing introspection.
For example this causes pyscripter/pyscripter#1288.
Please make sure that all doc strings are utf8 encoded.
The doc strings are not utf8 encoded as python expects them to be and this causes issues when doing introspection.
For example this causes pyscripter/pyscripter#1288.
Please make sure that all doc strings are utf8 encoded.
Activity
lmbelo commentedon Jan 22, 2024
Hello @pyscripter, are you still facing this issue?
pyscripter commentedon Jan 22, 2024
It is present in 1.0.5
fansxs commentedon Jun 23, 2024
Can you explain where to modify it and how to modify it? I want to try to modify it myself. : )
Utf8 encoding of docstrings. See Embarcadero/DelphiVCL4Python#84
pyscripter commentedon Jun 23, 2024
In version 1.05 the culprit is Screen.Realign
Run the following script:
Output:
Workaround for PyScripter:
fansxs commentedon Jun 23, 2024
It works fine, thank you very much!
fansxs commentedon Jun 23, 2024
Now I can debug delphivcl using debug function normally.
Fix Screen.Realign docstring
fansxs commentedon Jun 23, 2024
In WrapVclForms.pas in P4D, remove the quotes in the doc string PythonType.AddMethod('Realign', @TPyDelphiScreen.Realign_Wrapper,
PAnsiChar('TScreen.Realign()'#10 +
'Realigns the screens forms according to their Align properties.')); // screen’s -> screens, it is work!
You solved a problem that has been bothering me for a long time, thank you and the delphivcl4python team very much!
pyscripter commentedon Jun 23, 2024
Already fixed in PyScripter/python4delphi.