|Subject:||Re: Http.get a page with unicode characters|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Fri, 29 Apr 2005|
"Costa" <email@example.com> 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