lua-users home
lua-l archive

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



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.