Hi!
Me again
Consider this piece of code:
and the same lines in C++ Builder:
Now, during runtime, Delphi correctly displays that unicode string (which is Serbian Cyrillic), but C++ Builder not.
C++ Builder gives this warning, e.g.:
For other caracters too.
I'm not up to the speed to code page changing, I tried some stuff and it didn't work. Might figure it out later.
What I would like to know is: why in delphi that code works flawleslly and for C++ Builder to work I have to do some code page setting or whatever?
It should be the same principle.
Any ideas?
Best regards...
Me again
Consider this piece of code:
Code:
s: UnicodeString;
s := '?? ?? ?? ?? ?? ?? ?? ????????????????????';
Memo1.Lines.Add(s);
and the same lines in C++ Builder:
Code:
UnicodeString s;
s = "?? ?? ?? ?? ?? ?? ?? ????????????????????";
Memo1->Lines->Add(s);
Now, during runtime, Delphi correctly displays that unicode string (which is Serbian Cyrillic), but C++ Builder not.
C++ Builder gives this warning, e.g.:
Code:
[BCC32 Warning] Unit1.cpp(19): W8114 Character represented by universal-character-name '\u0409' cannot be represented in the current code page (1250)
I'm not up to the speed to code page changing, I tried some stuff and it didn't work. Might figure it out later.
What I would like to know is: why in delphi that code works flawleslly and for C++ Builder to work I have to do some code page setting or whatever?
It should be the same principle.
Any ideas?
Best regards...