Article View: borland.public.cppbuilder.internet.web
Article #579TIdHTTP Request & UTF-8
From: Renim
Date: Mon, 10 Apr 2006 08:03
Date: Mon, 10 Apr 2006 08:03
11 lines
1615 bytes
1615 bytes
How can I send http-request (GET) in UTF-8, using TIdHTTP? for example: http://AppServer/webapp?param1=value1 server supposes that string value1 is in UTF-8. I've written such code: AnsiString HttpReq = "http://AppServer/webapp?param1=<some text>" AnsiString Utf8HttpReq = AnsiToUtf8(HttpReq) idhttp->Get(Utf8HttpReq,ResponseStream); But there is something wrong - server recieves strange characters...
Technical Details
Message-ID:
<woednYQ-NdPcjKfZnZ2dnUVZ_s2dnZ2d@giganews.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,23edb58270926a1e,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 10 Apr 2006 03:03:13 -0500 Subject: TIdHTTP Request & UTF-8 From: renim@yandex-dot-ru.no-spam.invalid (Renim) Newsgroups: borland.public.cppbuilder.internet.web Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit User-Agent: newsSync (BorlandTalk.com) 515033 Message-ID: <woednYQ-NdPcjKfZnZ2dnUVZ_s2dnZ2d@giganews.com> Date: Mon, 10 Apr 2006 03:03:13 -0500 Lines: 1 X-Trace: sv3-HtUkFmTk9w9Z1C7/36Czvf6IrxmG2NmHQNbobu0vYStLszu7+csB5tYL/s16f2bO3PUO0cBazlZZix+!CplEkwaGYm7UVn4E+hG9mQi4/ynlmzxlPoFxk/zcfEw19yO8nRyuLoB05rSAynAsz5UJ5INK+u0= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32