lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello listers,

Using Linux, I wrote some Lua scripts. When running under Windows, the console does not show the portuguese special characters. I need to use UTF-8.

In Pascal codes, I used to call two procedures of Windows API.

{$ifdef windows}
SetConsoleCP(cp_utf8);
SetConsoleOutputCP(cp_utf8);
{$endif}

These two routines are in Kernel32.dll. I don't know if tthere is a COM interface.

My question is: how to do the same in Lua?

Luciano
--
Luciano de Souza