lua-users home
lua-l archive

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


Hi, as I'm sure the windows users on the list are aware, the lua standalone application often struggles with mojibake when printing to the windows terminal. To be clear, this is a problem with windows consoles specifically, and somewhat ironically using lua from within a WSL session leads to no mojibake. The windows function SetConsoleOutputCP "Sets the output code page used by the console associated with the calling process."  which may be useful in correctly printing from lua by selecting the utf8 codepage. Has anyone looked into something like this before?