Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2007 May : convert http query result from byte stream to unicode

www.cryer.info
Managed Newsgroup Archive

convert http query result from byte stream to unicode

Subject:convert http query result from byte stream to unicode
Posted by:"kombat" (ohad..@gmail.com)
Date:14 May 2007 22:09:51

i have a small client that performs http queries and receives back
text (using wininet).
this text, when looked at in a browser, contains unicode characters.

when i do my http request i get back a byte stream, when i look at it
the english characters are good but the non-english one are not
readable.

what do i need to do in order to convert this correctly to a unicode
string ? a unicode string that will correctly represent these non-
english characters.

i tried using mlang.dll's DetectInputCodepage but that didn't help.

thank you

Replies:

www.cryer.info
Managed Newsgroup Archive