Re: EnsureEncoding( ADefEncoding )

Giganews Newsgroups
Subject: Re: EnsureEncoding( ADefEncoding )
Posted by:  Remy Lebeau \(Indy Team\) (re…
Date: Tue, 21 Sep 2010

"Farshad Mohajeri" <farshad…> wrote in message

> In IdGlobal.pas EnsureEncoding() chooses
> "encASCII" as default encoder.

Yes, because most Internet protocols that Indy implements use ASCII as their
default charset.  For those protocols that support other charsets, the
corresponding Indy components expose their own ways of setting that encoding
when needed.

> Don't you think it is better to use "encOSDefault" as the default encoder?


Remy Lebeau (TeamB)


In response to

EnsureEncoding( ADefEncoding ) posted by Farshad Mohajeri on Tue, 21 Sep 2010