EnsureEncoding( ADefEncoding )

Giganews Newsgroups
Subject: EnsureEncoding( ADefEncoding )
Posted by:  Farshad Mohajeri (farshad…@fmsoft.net)
Date: Tue, 21 Sep 2010

Hi,

In IdGlobal.pas EnsureEncoding() chooses "encASCII" as default encoder.
Don't you think it is better to use "encOSDefault" as the default encoder?
"encASCII" is only meaningful when your OS is using English as system
locale. For system locale other than english "encOSDefault" fits well.

Or maybe Indy should provide a new mechanism to change the default encoder
without a need to modify IdGlobal.pas.

Regards,
Farshad Mohajeri

Replies