[fpc-devel] TEncoding.IsSingleByte is always False?

Bart bartjunk64 at gmail.com
Thu Jan 2 12:57:23 CET 2020


Hi,

Why does TEncoding.ANSI.IsSingleByte return False (and so does
TEncoding.GetEncoding(1252).IsSingleByte and for codepage 437 and
850)?

According to http://docwiki.embarcadero.com/Libraries/Rio/en/System.SysUtils.TEncoding.IsSingleByte
:
"TEncoding.IsSingleByte specifies whether the current encoding is of
single-byte format."

It references https://docs.microsoft.com/en-us/dotnet/api/system.text.encoding.issinglebyte
This states that for codepage 1252 this should be True
On my Windows machine TEncoding.ANSI.CodePage = 1252.

-- 
Bart


More information about the fpc-devel mailing list