更新时间:2023-02-14 11:36:34
根据您的配置,TCHAR
映射到 wchar_t
,这是一种使用 UTF- 单边编码的字符类型Windows 上的 16LE.
Given your configuration, TCHAR
maps to wchar_t
, a character type that is unilaterally encoded using UTF-16LE on Windows.
您可以使用以下方法对字符串进行编码:
You can encode the string using:
by = bytes(st, 'utf-16')