Re: Http.get a page with unicode characters

Giganews Newsgroups
Subject: Re: Http.get a page with unicode characters
Posted by:  Gregory (kyr…@softhome.net)
Date: Sat, 7 May 2005

Xristos Anesti (Costa will understand) :-)

Try

Result := utf8decode(http.get(url));

Gregory

"Costa" <costakaramalis@nospam.rogers.com> wrote in message
news:p3a5711o766kk2679ffge58sapg15bth…@4ax.com...
> I am trying to get a page that has unicode characters in it. (not the
> url, but the page body).
> The problem is that when I get it, some of the characters come as
> control/junk characters (which I assume are the extra characters for
> the Unicode since it is using more bytes).
> I tried using
> var
> result:widestring
> begin
> result:=http.get(url);
>
> but that doesnt work since I think the outcome of the get is a string.
> Is there a way to get the proper characters?
>
> Thank you

Replies

None

In response to

Http.get a page with unicode characters posted by Costa on Fri, 29 Apr 2005