|Subject:||Re: Http.get a page with unicode characters|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Fri, 29 Apr 2005|
"Costa" <firstname.lastname@example.org> wrote in message
> I am trying to get a page that has unicode
> characters in it. (not the url, but the page body).
TIdHTTP has overloaded methods that allow you to download the data into a
TStream as-is rather than as an Ansi-encoded String. For example:
strm := TMemoryStream.Create;
// use strm as needed...
> I tried using
That won't work since the data is still returned as a 'String' before then
being converted to your 'Widestring' variable.
Http.get a page with unicode characters posted by Costa on Fri, 29 Apr 2005