How to handle unicode with winHttp? RRS feed

  • Question

  • Hi,


      I try to write a program that use to retreive the webpage with vc++ and winHttp api. The program is run prefectly by following the sample code at

      But the problem is how to handle unicode with WinHttpReadData function? I saw the sample using LPSTR. The text will become ?? when the content is unicode. But the html tags are fine. I have try MultiByteToWideChar function. It doesn't work. All the content including the html tags become unreadable.



    Saturday, August 18, 2007 6:46 AM