How to handle unicode with winHttp?

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 athttp://msdn2.microsoft.com/en-us/library/aa384104.aspx

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.

THx

[913 byte] By [KTFung111] at [2008-1-8]