Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: How to encode UTF-8
| Subject: | Re: How to encode UTF-8 |
| Posted by: | "Dennis Poon" (send2dennishk@yahoo.com.hk.no.spam) |
| Date: | Sat, 1 Mar 2008 11:04:01 |
thanks.
I am using D5 prof, so I only have access to Indy.
Let me check again.
By the way, any web service requires me to use UTF16, look like it use 4
Hexadecimal digits to represent each byte, is that true?
I am a bit confused by all those standards especially when I already am
confused by the Simplified Chinese, Traditional Chinese, Chinese in Unicode
stuff WITHIN windows itself.
Dennis
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:47c85a41$1@newsgroups.borland.com...
>
> "Dennis Poon" <send2dennishk@yahoo.com.hk.no.spam> wrote in message
> news:47c830e7@newsgroups.borland.com...
>
>> can anyone tell me how to convert a string of Unicode or Big5 or
>> (any asian multi-byte character string) into UTF-8?
>
> The VCL in D6+ has a UTF8Encode() function.
>
>> I need to produce an XML document which include some chinese
>> characters, but I don't know how to encode it in UTF-8 format.
>
> Which XML engine, if any, are you using?
>
>> I check Indy source and it only has TidUTF8Decoder class but not encoder.
>
> Yes, it does have an encoder - TIdHeaderCoderUTF8 handles both encoding
> and decoding. That class is primarily meant for use with email
> processing, though.
>
>
> Gambit
none