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