[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Handling unicode file names on Windows
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 16 Aug 2012 08:45:50 +0200
On Thu, Aug 16, 2012 at 8:35 AM, Paul K <email@example.com> wrote:
> information). What options do I have for working with unicode file
> names? I want to be able to read/write files with unicode paths. This
> is using Lua 5.1.4.
One option on Windows is to use winapi:
winapi.short_path takes an encoded path (UTF-8 or UTF-16) and returns
the equivalent short path, which can be opened with io.open.
Sometimes a legacy option works nicely ;)