Re: Is it possible to add utf-8 lua source file support in lua 5.2?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Is it possible to add utf-8 lua source file support in lua 5.2?
- From: Pan Shi Zhu <pan.shizhu@...>
- Date: 2010年9月27日 10:16:46 +0800
Lua has no problem supporting utf-8 file without BOM.
According to POSIX standard, you should *not* add bom to utf-8 file.
So utf-8 with BOM is not a standard file format.
BTW: gnu gcc does not support utf-8+bom source file either.
On Mon, Sep 27, 2010 at 9:54 AM, Xpol Wan
<xpolife@gmail.com> wrote:
Hi guys,
Is it possible to add utf-8 lua source support in lua 5.2?
Just remove the BOM of the utf-8 lua source file when loading a lua file of string.
I know it is just a little patch, but it would be nice to include this feature in the official lua.