@@ -553,16 +553,16 @@   TPyDelphiObject = class (TPyInterfacedObject, IFreeNotificationSubscriber)
553553    class  function  ExcludedExposedMembers (APythonType: TPythonType): TArray<string>; virtual ;
554554    class  procedure  ExposeMethods (AClass: TClass; NearestAncestorClass: TClass;
555555      APythonType: TPythonType; APyDelphiWrapper: TPyDelphiWrapper;
556-       AExcludedMethodNames: TArray<string> = [] );
556+       AExcludedMethodNames: TArray<string> = nil );
557557    class  procedure  ExposeFields (AClass: TClass; NearestAncestorClass: TClass;
558558      APythonType: TPythonType; APyDelphiWrapper: TPyDelphiWrapper;
559-       AExcludedFieldNames: TArray<string> = [] );
559+       AExcludedFieldNames: TArray<string> = nil );
560560    class  procedure  ExposeProperties (AClass: TClass; NearestAncestorClass: TClass;
561561      APythonType: TPythonType; APyDelphiWrapper: TPyDelphiWrapper;
562-       AExcludedPropertyNames: TArray<string> = [] );
562+       AExcludedPropertyNames: TArray<string> = nil );
563563    class  procedure  ExposeIndexedProperties (AClass: TClass; NearestAncestorClass: TClass;
564564      APythonType: TPythonType; APyDelphiWrapper: TPyDelphiWrapper;
565-       AExcludedPropertyNames: TArray<string> = [] );
565+       AExcludedPropertyNames: TArray<string> = nil );
566566    { $ENDIF EXTENDED_RTTI} 
567567  public 
568568    PyDelphiWrapper : TPyDelphiWrapper;
@@ -4290,7 +4290,7 @@ class procedure TPyDelphiObject.ExposeFields(AClass: TClass;
42904290      if  Assigned(PyDocServer) and  PyDocServer.Initialized and 
42914291        PyDocServer.ReadMemberDocStr(LRttiField, LDocStr)
42924292      then 
4293-         LExposedField.DocString := AnsiString (LDocStr);
4293+         LExposedField.DocString := Utf8Encode (LDocStr);
42944294
42954295      //  Keep it alive until the Wrapper is Finalized
42964296      APyDelphiWrapper.fExposedMembers.Add(LExposedField);
@@ -4377,7 +4377,7 @@ class procedure TPyDelphiObject.ExposeProperties(AClass: TClass;
43774377      if  Assigned(PyDocServer) and  PyDocServer.Initialized and 
43784378        PyDocServer.ReadMemberDocStr(LRttiProperty, LDocStr)
43794379      then 
4380-         LExposedProperty.DocString := AnsiString (LDocStr);
4380+         LExposedProperty.DocString := Utf8Encode (LDocStr);
43814381
43824382      //  Keep it alive until the Wrapper is Finalized
43834383      APyDelphiWrapper.fExposedMembers.Add(LExposedProperty);
@@ -4460,7 +4460,7 @@ class procedure TPyDelphiObject.ExposeIndexedProperties(AClass: TClass;
44604460      if  Assigned(PyDocServer) and  PyDocServer.Initialized and 
44614461        PyDocServer.ReadMemberDocStr(LRttiProperty, LDocStr)
44624462      then 
4463-         LExposedProperty.DocString := AnsiString (LDocStr);
4463+         LExposedProperty.DocString := Utf8Encode (LDocStr);
44644464
44654465      //  Keep it alive until the Wrapper is Finalized
44664466      APyDelphiWrapper.fExposedMembers.Add(LExposedProperty);
0 commit comments