Be sure to use latest ICS which has been ported to unicode enabled Delphi
versions such as D2010.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




-----Message d'origine-----
De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la
part de Stan
Envoyé : mardi 28 février 2012 21:01
À : ICS support mailing
Objet : Re: [twsocket] OFF: string issues while porting WebSockets server to
BDS 2010

Apologies for the disturbance, I've found the solution - AnsiChar.
Now all is working fine.

----- Original Message -----
From: Stan
To: ICS support mailing
Sent: Tuesday, February 28, 2012 10:43 PM
Subject: OFF: string issues while porting WebSockets server to BDS 2010


Hi,

I have a working WebSockets server for ICS, which I plan to share.
It is implemented initially in Delphi 7. Now I try to port it to BDS2010 and
have some issues with strings.

First, I replaced all 'string's with 'AnsiString's, and this seems working
as expected. But Chr function produces a problem. If I have an AnsiString
str, and try to call str := Chr(b), where b is Byte with value 129, I get
the symbol '?', which should normally be another "non-standard" so to speak
character.

So the question is, how to use Chr in BDS without any "smart"
interferences, or how can I pack bytes in a AnsiString without using Chr?

Thanks in advance,
Stan
--
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

--
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