Delphi – Importing D7 DPR in Delphi 2009: “Invalid character in text content”

delphidelphi-2009unicode

I'm trying to open old projects generated in Delphi 7 with Delphi 2009. On some projects, this causes the following error message from the IDE:

"An invalid character was found in text content"

The affected projects are working fine in the old IDE. How can I solve this?

Best Answer

Sounds like you have non-compatible 8-bit character in your .dpr file. Maybe it helps if you either clean the file or convert it to utf-8 with some text editor and try again.