Undeclared identifier TEncoding delphi7

Vinamra Bhantagar picture Vinamra Bhantagar · Sep 21, 2011 · Viewed 7.6k times · Source

Hi i want to use TEncoding to convert Tbytes to utf7 but when i use TEncoding delphi gives following error.

Undeclared identifier: 'TEncoding'

i am using delphi 7.

what to do??

Answer

Andreas Rejbrand picture Andreas Rejbrand · Sep 21, 2011

TEncoding was introduced in Delphi 2009. You should upgrade to a newer version of Delphi, such as XE.