[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Showing UTF-8 characters in a Windows console script
- From: Luciano de Souza <luchyanus@...>
- Date: Wed, 07 Dec 2011 19:54:56 -0200
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