delphi - Indy, IdTCPSever sending data in utf=8 charset -


i have problem conversion strings utf-8. use standard indy method sending conversion inside:

 acontext.connection.iohandler.writeln(utf8encode('ĄĘÓ')); 

but client reads them '???' - 3f 3f 3f in hex (i checked using wireshark too).

i use delphi xe , indy 10.

big help.

~artik

i found solution problem, think siplest using code below:

acontext.connection.iohandler.defstringencoding := tidtextencoding.utf8; 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -