Indy 10.6.0 - IndyTextEncoding(1252)

Giganews Newsgroups
Subject: Indy 10.6.0 - IndyTextEncoding(1252)
Posted by:  Marius (please@nospamhere.com)
Date: Wed, 22 May 2013

Hello,

We just svn-updated indy to revision 5006 and updated our sources. Some
breaking changes in it but all can be easely fixed in delphi and fpc. I
noticed the following replace:

IOHandler.DefStringEncoding := TEncoding.GetEncoding(1252) =>
TMBCSEncoding
replaced with
IOHandler.DefStringEncoding := IndyTextEncoding(1252); =>
TIdASCIIEncoding

But AFAICT this results in a different encodingthe before (unless
TIdASCIIEncoding produces the same results as TMBCSEncoding, not yet
sure what TIdASCIIEncoding does under the hood, but the name suggest a
wrong encoding).

Should IndyTextEncoding really return IndyTextEncoding_ASCII for
codepage 1252?

Thanks,
Marius

Replies