#define _UNICODE
#include <tchar.h>
#include <locale.h>
#include <stdio.h>
int main()
{
_tsetlocale(LC_ALL, _TEXT(".OCP"));
TCHAR str[] = _TEXT("这是一条测试短信");
int length = _tcslen(str);
TCHAR* pchar = (TCHAR*)str;
for(int i = 0; i < length;i++)
{
_tprintf(_TEXT("%x/n"), *pchar++);
}
return 0;
}