Yep, any String is now an Unicode string, and as you write sizeof(char) = 1 is false now. Strings in Delphi 2009 are UTF-16 based, since that is the native Windows Unicode encoding.Originally Posted by masonwheeler
The old WideString remains as a COM type.
Anyway...
as far as I know (can't test because I don't have D2009) that's not entirely true. While you may need to change your code, some have suggested to try and simply change any String that you need to behave as before to AnsiString type.Originally Posted by masonwheeler
Some information and references
http://delphi.wikia.com/wiki/Tibur%C3%B3n
These are 3 articles by Nick Hodges, CodeGear's Delphi Product Manager on "unicodifying" your code. I haven't read them yet, but they seem to cover a fair bit of cases.
http://dn.codegear.com/article/38437 - Part I
http://dn.codegear.com/article/38498 - Part II
http://dn.codegear.com/article/38693 - Part III
Hope this helps.
Bookmarks