[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Will Lua kernel use Unicode in the future?
- From: Klaus Ripke <paul-lua@...>
- Date: Thu, 29 Dec 2005 12:06:01 +0100
On Thu, Dec 29, 2005 at 06:26:26PM +0800, CHU Run-min wrote:
> 1)Like Windows NT kernel.
> 2)Lua source files can use various encoding.
> 3)Before parsing, the source file is converted to Unicode.
A general recoding facility is something way too fat
to be integrated at core level.
Preferred way to handle a collection of scripts
based on different encodings is to convert
them to Unicode (UTF-8) while installing
(using external tools like iconv or recode).
> Now Lua string is something like binary data, is there any better
> solution at this problem, the string encoding problem?
The Lua "kernel" is agnostic to encodings, so there is no problem.
For string operations on UTF-8 see