소스 검색

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

Ondrej Pokorny 3 년 전
부모
커밋
bce2f26234
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/objpas/sysutils/sysencoding.inc

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

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