Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
utf-8 への変換文字列に問題があります。内部で変換して送信するために、標準の Indy メソッドを使用します。
AContext.Connection.IOHandler.writeln(Utf8Encode('ĄĘÓ'));
しかし、クライアントはそれらを「???」のように読みます - 3f 3f 3f in hex (WireSharkでも確認しました)。
Delphi XE と Indy 10 を使用しています。
助けてくれてありがとう。
〜Artik
私は自分の問題の解決策を見つけました。以下のようなコードを使用するのが最も簡単だと思います:
uses IdGlobal; begin aContext.Connection.IOHandler.DefStringEncoding := IndyTextEncoding_UTF8; end;