[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Default UTF-8 encoding in strings
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Sun, 21 Jul 2019 23:59:48 -0300
>When exactly are characters/bytes UTF-8 interpreted in a literal
>strings?
This should depend solely on the text encoding your text editor used when saving the ".lua" file. If the text editor is saving as utf-8 then your Lua strings will be encoded as utf-8 as well.
From the point of view of Lua, strings are just an array of bytes. It isn't aware of utf-8 or any other character encoding for that matter.