![]() |
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 15:09 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz