AString Converter::UTF_82ASCII(const AString& strUtf8Code){
			AString strRet("");
			//先把 utf8 转为 unicode 
			WString wstr = Utf82Unicode(strUtf8Code);
			//最后把 unicode 转为 ascii
			strRet = WideByte2Acsi(wstr);
			return strRet;
		}
Exemple #2
0
//utf-8 转 ascii
string UTF_82ASCII(string& strUtf8Code)
{
	string strRet("");


	//先把 utf8 转为 unicode 
	wstring wstr = Utf82Unicode(strUtf8Code);

	//最后把 unicode 转为 ascii
	strRet = WideByte2Acsi(wstr);


	return strRet;
}