libs/encodings.lua@22844ac3be4e
libs/encodings.lua
Wed, 21 Jun 2023 12:21:09 +0200
- author
- Kim Alvefur <zash@zash.se>
- date
- Wed, 21 Jun 2023 12:21:09 +0200
- changeset 492
- 22844ac3be4e
- parent 489
-
39ed19f12dca
- permissions
- -rw-r--r--
server: Import one of Prosodys net.server implementations
Wraps up this behavior in a new module.
local mime = require "mime";
module "encodings"
idna = {};
stringprep = {};
base64 = { encode = mime.b64, decode = mime.unb64 };
utf8 = {
valid = (utf8 and utf8.len) and function (s) return not not utf8.len(s); end or function () return true; end;
};
return _M;