On Wed, 29 Apr 2026, at 19:26, Stephen Hewitt wrote:
When I try to open a file with characters that are not in the current console code page it failes without my changes. I'm using this folder name: "C:\有問題的". Without the changes, for me at least, the console does not even accept the Chinese characters and the open fails. I can not find where lua sets the console code pages you say it contains. Can you point my to it? Setting to binary. while not strictly necessary, makes the behavious more consistant with other systems, unless I am mistaken.
Ok, so that is something else; the UTF8 characters are in the filename, not its contents. This could indeed be more problematic, though I'm no expert on the subject, iirc lfs (luafilesystem module) also had some issues with unicode characters on Windows.
Thijs