In our previous episode, silvioprog said: > ------------------------------------------------------------ > program test; > > {$mode objfpc}{$H+} > > {$IFDEF MSWINDOWS} > uses > windows; > {$ENDIF} > > const > C = 'Aten??o'; > begin > {$IFDEF MSWINDOWS} > SetConsoleOutputCP(CP_UTF8); > SetTextCodePage(Output, CP_UTF8); > {$ENDIF} > WriteLn(C); > end. > ------------------------------------------------------------
Windows has two sets of console routines. One set that is universal over win9x and WinNT, one that is WinNT only. FPC uses the universal ones (still), the above code is WinNT only. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel