Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2020-01

TEncoding.IsSingleByte is always False?

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bart

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

Reply by email