[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Unicode and UTF-8 the Lua way, mid-discussion (was Re: What do you miss most in Lua)
- From: Rob Hoelz <rob@...>
- Date: Wed, 8 Feb 2012 13:17:14 -0600
On Wed, 8 Feb 2012 20:06:03 +0100
Patrick Rapin <email@example.com> wrote:
> > I can actually think of a fourth solution, although it will be
> > probably be received as rather hack-ish. You can add two new
> > functions, string.upgrade and string.downgrade, which marks a
> > string as UTF-8 or "non-UTF-8".
> This is in fact very similar to the way Perl handles Unicode 
> And to my experience, it works quite well.
> Also, if Lua supports UTF-8, it will have to accept UTF-8 filenames
> on Windows. Jérôme Vuarand has written a patch for this , perhaps
> it will be included in vanilla Lua one day. ?
>  http://perldoc.perl.org/utf8.html
That's exactly where I got the idea from. =P
Description: PGP signature