Unicode encoding question
Jarek Zgoda
jzgoda at usun.gazeta.pl
Sat Mar 15 14:06:17 EST 2003
Martin v. Löwis <martin at v.loewis.de> pisze:
>> It doesn't matter, as long as all your chat server clients agree. UTF-8
>> or UTF-16 would be the obvious choices; the preference would depend on
>> the language(s) you'd typically expect to be used over the server.
>
> Exactly; although IETF suggests to use UTF-8 for new protocols if in
> doubt (as the second-best choice, they suggest to allow multiple
> encodings, with a clear encoding declaration on the wire).
>
> Of course, if the protocol is an *existing* one, like IRC, you'll have
> to stick with whatever the protocol specifies. For the specific case of
> IRC, you will find that the situation is quite muddy.
But on the other hand you have Jabber and here situation is very clear,
all messaging must be done in UTF-8.
--
Jarek Zgoda
http://www.zgoda.biz/ JID:zgoda at jabber.atman.pl
More information about the Python-list
mailing list