[fpc-pascal] Compile ANSI unit as UTF8

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Sep 6 15:43:30 CEST 2010


In the Virtual Magnifying Glass I used the following solution:

1> All my strings come from a translations manager

2> When they are updated (because the user selected a different
language for example) then I also added the following code:

{$ifndef fpc}
 <<-- here convert all utf-8 strings to ansi for Delphi usage
{$endif}

And now it works fine.

Check: http://magnifier.svn.sourceforge.net/viewvc/magnifier/trunk/translationsvmg.pas?revision=193&view=markup

procedure TTranslations.UpdateTranslations;

-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list