Dear Gammon,
I'm facing a problem when loading a third party dll name "luaiconv.dll", which provides encoding/decoding chars functions.
I can run it smoothly in command line in windows via Lua.exe.
When I load my Lua script,It can't find the module.
local iconv = require("luaiconv")
local cd = iconv.new("utf-8","gbk")
local words, err = cd:iconv(text)
There are 3 dlls: luaiconv.dll,iconv.dll,charset.dll .I tried to place them in these folders:1) same folder of the Lua script 2.root path of mush client
3) lua 5.1\clibs
Provide a link to these dlls, please, along with another link to the project page. We don't want to hunt all over the internet looking for something that may or may not be what you're trying to use.
Sorry,I have no pure English Windows OS currently.
I tried utf8/gbk for lua script self.
And nothing changes.
It seems mushclient loaded or found dll successfully,but can't load
module 'luaiconv' successfully.
Run-time error
World: ashooter
Immediate execution
error loading module 'luaiconv' from file '.\luaiconv.dll':
The specified procedure could not be found.
stack traceback:
[C]: ?
[C]: in function 'require'
[string "Script file"]:4: in main chunk
require "tprint"; f = assert(package.loadlib("luaiconv.dll", "luaopen_luaiconv"))(); tprint(f)
GOT ERROR:
Run-time error
World: ashooter
Immediate execution
[string "Script file"]:6: The specified procedure could not be found.
stack traceback:
[C]: in function 'assert'
[string "Script file"]:6: in main chunk