BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indy 9 idHTTP Foriegn Characters Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Bruce McGee
Guest





PostPosted: Fri Dec 19, 2003 7:47 pm    Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem Reply with quote



Greg wrote:

Quote:
The source code of a page with foriegn characters (German, I think)
is being returned incorrectly. For example, the word vffentlicher is
being returned as C6ffentlicher. I'm getting the source by doing:
strHTML := http.Get(strURL);.

Anyone know what the problem is?

Any chance the first character is accented? Depending on how the page
is encoded, this could be encoded in something like UTF-8. I haven't
had to deal with this in web pages, but we get it a lot with XML files.

Regards,
Bruce McGee
Glooscap Software

Back to top
Greg
Guest





PostPosted: Fri Dec 19, 2003 8:16 pm    Post subject: Indy 9 idHTTP Foriegn Characters Problem Reply with quote



The source code of a page with foriegn characters (German, I think) is being
returned incorrectly. For example, the word öffentlicher is being returned
as öffentlicher. I'm getting the source by doing: strHTML :=
http.Get(strURL);.

Anyone know what the problem is?


Back to top
Greg
Guest





PostPosted: Fri Dec 19, 2003 8:52 pm    Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem Reply with quote



"Bruce McGee" <bmcgee (AT) glooscap (DOT) com> wrote

Quote:
Any chance the first character is accented? Depending on how the page
is encoded, this could be encoded in something like UTF-8. I haven't
had to deal with this in web pages, but we get it a lot with XML files.

Bruce, I'm not sure what you mean. The page that's the problem is
http://www.tageskarte-gemeinde.ch/KarteReservieren/. I haven't tried any
others.



Back to top
Bruce McGee
Guest





PostPosted: Wed Dec 24, 2003 12:16 pm    Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem Reply with quote

Greg wrote:

Quote:
"Bruce McGee" <bmcgee (AT) glooscap (DOT) com> wrote in message
news:3fe363fb (AT) newsgroups (DOT) borland.com...
Any chance the first character is accented? Depending on how the
page is encoded, this could be encoded in something like UTF-8. I
haven't had to deal with this in web pages, but we get it a lot
with XML files.

Bruce, I'm not sure what you mean. The page that's the problem is
http://www.tageskarte-gemeinde.ch/KarteReservieren/. I haven't tried
any others.


Hi Greg,

I don't see the word you mentioned, but if you look at this page:

http://www.tageskarte-gemeinde.ch/ReservationsUebersicht/

nachstens comes back as nA$chstens.

Looks like the non standard characters are represented with multiple
bytes, just like with UTF-8.

I'm a little out of my depth converting character sets, but if I use
Utf8ToAnsi or Utf8Decode, the text displays properly. Someone else
might have a more elegant solution.

I hope this helps.

Regards,
Bruce McGee
Glooscap Software

Back to top
Greg
Guest





PostPosted: Wed Dec 24, 2003 2:09 pm    Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem Reply with quote


"Bruce McGee" <bmcgee (AT) glooscap (DOT) com> wrote

Quote:
Hi Greg,

I don't see the word you mentioned, but if you look at this page:

http://www.tageskarte-gemeinde.ch/ReservationsUebersicht/

nachstens comes back as nA$chstens.

Looks like the non standard characters are represented with multiple
bytes, just like with UTF-8.

I'm a little out of my depth converting character sets, but if I use
Utf8ToAnsi or Utf8Decode, the text displays properly. Someone else
might have a more elegant solution.

I hope this helps.

Regards,
Bruce McGee
Glooscap Software

Hi Bruce,

That worked well and has solved the problem.

Thanks.

Greg



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.