Since Delphi 2009 strings are Unicode strings. That means UTF-16 not UTF-8! If You need to exchange compressed or encrypted (OpenSSL) strings(streams) from Delphi to php and vice versa You must „convert“ Your PHP strings to UTF-16 Little-Endian without BOM. Weiterlesen
Or how to load an ansi file with a specific codepage into a Delphi XE3 Memo?
One of our programms should load an ansi file with the codepage Windows-1251. If you open the file with Notepad (on a german pc) You will get something like this: