Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Nov : example of HTTP GET/POST using wide strings??
| Subject: | example of HTTP GET/POST using wide strings?? |
| Posted by: | "David S" (no.spam@xyz.com) |
| Date: | 26 Nov 2006 22:54:05 |
I'm looking for some example code that lets me do an HTTP GET and
POST, and get back foreign character strings as wide strings.
All the components and libs I've seen, including Indy, just use
'string' or 'pchar' types. Wininet, for example, has several
interfaces that support different string char widths.
The problem at hand is that we're doing GETs and POSTs to some
sites that are returning data in foreign character sets. As
string or pchar types, the software can't display them properly.
At least, that's what I _think_ the problem is.
I've got some controls that let me paste in data on the clipboard
that has been copied from IE browser windows in foreign character
sets like French, Spanish, German, and Russian. The characters
are properly displayed when pasted. However, attempting to load
the same page through the program only displays gibberish for the
same values. This app is using Indy's TidHTTP object (Indy 10)
to do the query, which returns regular 'string' types.
Thanks
-David