2012/1/25 Zaher Dirkey <[email protected]>: > How can i resolve this problem, because i share this unit with Delphi 2007, > Delphi 2007 not understand UTF8 without BOM
For FPC up to 2.6 you can use all text fields as ansistring variables and use ifdefs to call a procedure to convert all UTF-8 strings to Ansi only in Delphi, see this unit from the Magnifier which does exactly this: http://magnifier.svn.sourceforge.net/viewvc/magnifier/trunk/translationsvmg.pas?revision=210&view=markup See there procedure TTranslations.UpdateTranslations; If you are using FPC 2.7 try keeping the BOM and add this call before Application.Initialize: SetMultiByteConversionCodePage(CP_UTF8); -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
