From 4276eb0fdb1138acdbb0c65130d6852e817b29dd Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Mon, 24 Jul 2023 04:58:08 +0300 Subject: [PATCH] Use encoding="CP1251" for lua plugins; --- src/modules/PluginsLoader/lua_plugins_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/PluginsLoader/lua_plugins_loader.py b/src/modules/PluginsLoader/lua_plugins_loader.py index c01862d..b48f8ab 100644 --- a/src/modules/PluginsLoader/lua_plugins_loader.py +++ b/src/modules/PluginsLoader/lua_plugins_loader.py @@ -627,7 +627,7 @@ def load(self): for name in self.lua_dirs: # noinspection PyArgumentList - lua = LuaRuntime(encoding=config.enc, source_encoding=config.enc, unpack_returned_tuples=True) + lua = LuaRuntime(encoding="CP1251", source_encoding=config.enc, unpack_returned_tuples=True) lua_globals = lua.globals() lua_globals.printRaw = lua.globals().print lua_globals.exit = lambda x: self.log.info(f"KuiToi: You can't disable server..")