matrapas wrote:
> Hello,
> 
> Sorry for my bad English.

No problem in this list :)

> Thanks for the great component.
> I have one question - I can not understand.
> 
> Can I transfer "Unicode" between the components TWSocket and
> TWSocketServer?

I assume you use Delphi 2009+, if not, things are different.
Do you realy want to send UTF-16?
If yes, you can ;) simply do not use method SendStr() but
Send() directly, something like:

{code}
var
  s: UnicodeString;
begin
  s := 'Hello';
  WSocket1.Send(Pointer(s), Length(s) * SizeOf(WideChar));
{code}

But why on earth would you want to sent UTF-32?
In most cases one would send UTF-8 instead like:

{code}
var
  s: UnicodeString;
begin
  s := 'Hello';
  WSocket1.SendStr(s, CP_UTF8);
{code}

-- 
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to