lua-users home
lua-l archive

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


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.