WinHTTP Request data in unicode?
问题 I'm trying to read a web page via WinHTTP: bool WinHTTPClass::QueryResponseData(std::string &query_data) { // Read response DWORD dwSize, dwDownloaded = 0; do { // Check for available data. if( !WinHttpQueryDataAvailable( hRequest, &dwSize ) ) { cout << "Error querying data : " << GetLastError() << endl; return false; } // Allocate space for the buffer. char* pszOutBuffer = new char[dwSize+1]; if( !pszOutBuffer ) { cout << "Out of memory" << endl; dwSize=0; } else { // Read the data.