 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bruce McGee Guest
|
Posted: Fri Dec 19, 2003 7:47 pm Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem |
|
|
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
|
Posted: Fri Dec 19, 2003 8:16 pm Post subject: Indy 9 idHTTP Foriegn Characters Problem |
|
|
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
|
Posted: Fri Dec 19, 2003 8:52 pm Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem |
|
|
"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
|
Posted: Wed Dec 24, 2003 12:16 pm Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem |
|
|
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
|
Posted: Wed Dec 24, 2003 2:09 pm Post subject: Re: Indy 9 idHTTP Foriegn Characters Problem |
|
|
"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 |
|
 |
|
|
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
|
|