Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想使用 TEncoding 将 Tbytes 转换为 utf7,但是当我使用 TEncoding 时,delphi 会出现以下错误。
未声明的标识符:'TEncoding'
我正在使用德尔福 7。
该怎么办??
TEncoding在 Delphi 2009 中引入。您应该升级到较新版本的 Delphi,例如 XE。
TEncoding
该SysUtils.TEncoding课程在 D7 中不可用。改用 Win32 APIMultiByteToWideChar()和WideCharToMultiByte()函数,指定CP_UTF7为代码页。
SysUtils.TEncoding
MultiByteToWideChar()
WideCharToMultiByte()
CP_UTF7