File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function TForm1.GetProperty(pSelf, Args : PPyObject) : PPyObject; cdecl;
88
88
Result := VariantAsPyObject(rgSex.ItemIndex)
89
89
else
90
90
begin
91
- PyErr_SetString (PyExc_AttributeError^, PAnsiChar(Format(' Unknown property "%s"' , [key])));
91
+ PyErr_SetString (PyExc_AttributeError^, PAnsiChar(UTF8Encode( Format(' Unknown property "%s"' , [key]) )));
92
92
Result := nil ;
93
93
end ;
94
94
end
@@ -136,7 +136,7 @@ function TForm1.SetProperty(pSelf, Args : PPyObject) : PPyObject; cdecl;
136
136
end
137
137
else
138
138
begin
139
- PyErr_SetString (PyExc_AttributeError^, PAnsiChar(Format(' Unknown property "%s"' , [key])));
139
+ PyErr_SetString (PyExc_AttributeError^, PAnsiChar(UTF8Encode( Format(' Unknown property "%s"' , [key]) )));
140
140
Result := nil ;
141
141
end ;
142
142
end
You can’t perform that action at this time.
0 commit comments