Hello!
I have problem with a storage strings in ASCII. I trying to use String, ShortString, AnsiString, but I don`t have a correct symbols.
For ex.:
Var
S : String;
Begin
S := 'Привет всем русским'; //Russian symbols (128-255 part of ASCII)
If S[1] = 'П' Then ShowMessage('!');
I don`t have a message. If I try to show this I have a 'R®¤~ °®' like string;
How to solve this problem?
--------------------
I find only one way:
S := Chr($C0) + Chr($C1) + Chr($C2);
Then I have a correct string and can to compare symbols:
If S[1] = 'А' (* Russian 'A' *) Then ...