Friday 15 March 2013

Delphi XE2 Indy IRC Unicode -


Is it possible to get Unicode support? At present IIRDC 1 private message '?' Thanks for the help. Process TForm1.IdIRC1 Private MESSAGE (ASNDER: TIDConnecte; CONC ANEXKAFFORM, AHOST, ANNICTIME, AMS: UnicodeString); Start Memo 1. Lines Add (Time Tastert (Time) + ':' + Anonymous Name + ':' + Amazes); End;

Indy version: 10.5.8.0 When I will send a message to the MIC, such as 'Å¼ÅºÄ ??' I will get "???" In DLFI

The IRC protocol does not provide any provision for Unicode. MIRC implements Unicode using UTF-8 (see where).

TIdIRC does not support unicode natively, however, after you connect TIdIOHandler.DefStringEncoding property to IndyUTF8Encoding Can manually specify TIdIRC to encode / decode data using UTF-8, or global IdGlobal.GIdDefaultTextEncoding variable by By setting encUTF8 (this is set to encASCII by default). I do not guarantee that it will work correctly in all situations (especially during CTC / DCC operations).

No comments:

Post a Comment