From c0d6765662af7b5b1254786f0ae3b2c8d5b1b3b7 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 10 Oct 2017 00:11:58 +0800 Subject: [PATCH] fixed --- src/Http/strCoding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/strCoding.cpp b/src/Http/strCoding.cpp index 0f3b093b..78fc04d4 100644 --- a/src/Http/strCoding.cpp +++ b/src/Http/strCoding.cpp @@ -35,14 +35,14 @@ namespace ZL { namespace Http { //////////////////////////通用/////////////////////// -void UTF8ToUnicode(WCHAR* pOut, const char *pText) +void UTF8ToUnicode(wchar_t* pOut, const char *pText) { char* uchar = (char *)pOut; uchar[1] = ((pText[0] & 0x0F) << 4) + ((pText[1] >> 2) & 0x0F); uchar[0] = ((pText[1] & 0x03) << 6) + (pText[2] & 0x3F); return; } -void UnicodeToUTF8(char* pOut, const WCHAR* pText) +void UnicodeToUTF8(char* pOut, const wchar_t* pText) { // 注意 WCHAR高低字的顺序,低字节在前,高字节在后 const char* pchar = (const char *)pText;