Re: EnsureEncoding( ADefEncoding )

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

"Farshad Mohajeri" <farshad…@fmsoft.net> wrote in message
news:44F2A85352BFE340farshad…@fmsoft.net...

> 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?

No.

--
Remy Lebeau (TeamB)

Replies

In response to

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