Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : url encode to utf-8
| Subject: | url encode to utf-8 |
| Posted by: | "ildg" (il..@163l.com) |
| Date: | 23 May 2006 01:11:32 |
Delphi has a function called HttpEncode(str), which can encode a mutlti-byte string. But how can I encode it to utf-8?
Java has a UrlEncoder class, if I use URLEncoder.encode("mystring","utf-8"), I will get what I want. How can I do this in delphi? Which function should I use? Thanks.