开发者

Undeclared identifier TEncoding delphi7

开发者 https://www.devze.com 2023-04-06 21:27 出处:网络
Hi i want to use TEncoding开发者_高级运维 to convert Tbytes to utf7but when i use TEncoding delphi gives following error.

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


The SysUtils.TEncoding class is not available in D7. Use the Win32 API MultiByteToWideChar() and WideCharToMultiByte() functions instead, specifying CP_UTF7 as the codepage.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消