Browse Source

* TEncoding.GetEncoding - create unicode encodings, not only MBCS

Ondrej Pokorny 3 years ago
parent
commit
bce2f26234
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/sysutils/sysencoding.inc

+ 1 - 1
rtl/objpas/sysutils/sysencoding.inc

@@ -454,7 +454,7 @@ begin
   ACodePage := CodePageNameToCodePage(AnsiString(EncodingName));
   if ACodePage = $FFFF then
     raise EEncodingError.CreateFmt(SNotValidCodePageName, [EncodingName]);
-  Result := TMBCSEncoding.Create(ACodePage);
+  Result := GetEncoding(ACodePage);
 end;
 
 function TEncoding.GetString(const Bytes: TBytes): UnicodeString;