Re: Handling unicode file names on Windows
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Handling unicode file names on Windows
- From: steve donovan <steve.j.donovan@...>
- Date: 2012年8月16日 08:45:50 +0200
On Thu, Aug 16, 2012 at 8:35 AM, Paul K <paulclinger@yahoo.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:
http://stevedonovan.github.com/winapi/api.html#short_path
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 ;)
steve d.