Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Indy TCPClient und UTF16 (https://www.delphipraxis.net/161342-indy-tcpclient-und-utf16.html)

DerAndereMicha 29. Jun 2011 15:08

Indy TCPClient und UTF16
 
Hallo Zusammen,

wie decodiere ich Datenverkehr mit der TidTCPClient-Komponente, der im UTF16-Format gesendet wird.

Mit UTF8 mache ich das zur Zeit so:

Code:
 with TCPClient.IOHandler do
  begin
    CheckForDataOnSource(10);
    if not InputBufferIsEmpty then
    begin
          Text := InputBuffer.Extract(-1, enUtf8);
    end;
  end;

Und das funktioniert auch. Aber für UTF16 gibt ja keine Konstante enUtf16 ...

Achso, ich nutze Delphi 2007 Enterprise und die Indys in der Version 10.

Gruß
Micha


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:33 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz