encodingluacharacter-encodingluci

Luci lua. The file is not displayed in the editor because it is either binary or uses an unsupported text encoding


When I try to open a lua file in VScode. Gives an error message

The file is not displayed in the editor because it is either binary or uses an unsupported text encoding

There is no error when opening notepad++. Strings mixed with special characters

enter image description here


Solution

  • That file is compiled LuaJIT bytecode, not Lua source code. The first three bytes being ESCLJ are the indication of this.