mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 20:09:25 +02:00
* TEncoding.GetEncoding - create unicode encodings, not only MBCS
This commit is contained in:
parent
5ab6775376
commit
bce2f26234
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user