Thanks for Arno Garrels.

I have got it.

I use delphi7 and ics v7.

After I debug the code line by line, I understand I need to convert my
chinese word code by "*buf := UrlEncode('测试数据', CP_ACP);*".

>
> Hi Wiliam,
>
> > today when I use the THttpCli component, I get a problem.
> >
> > I want to post data to one website by using THttpCli, I think it's
> > default enconding page is UTF8,
>
> THttpCli does neither modify nor encode posted data, instead the
> stream content is sent as is, byte by byte.
>
> > but now I
> >
> > hope it can encode chinese word using another charactor encode , such
> > as GBK or GB2312.
> >
> > What can I do?
>
> You would have to convert your text to a different character set
> using the Windows code page identifier that is mapped to MIME
> character set GBK or GB2312.
>
> What ICS and Delphi version do you use?
>
> --
> Arno Garrels
>
>
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to