Quote Originally Posted by Ñuño Martínez View Post
I know I can avoid it using conversion functions as I've explained above but they aren't needed by FPC (actually they'll not work!).
You can add your own functions which do conversion when Delphi is used, but just return the string as is when FPC is used, via conditional compilation. They do the required thing within them, and just use them consistently instead of Delphi specific functions. Define them in a shared unit. I do this for different platforms. I don't use Delphi, but I have seen other code which does something similar in order to support both Delphi and FPC.