Jump to content

Module:71061

Unchecked
From Wikipedia

local p = {}
local str = "(Č)"
local pat = "%b()"
   
function p.main(frame)
	mw.logObject(mw.ustring.isutf8(str))
	mw.logObject(require('ustring').isutf8(str))
	for x in mw.ustring.gmatch(str, pat) do
		mw.logObject(x, 'PHP')
	end
	for x in require('ustring').gmatch(str, pat) do
		mw.logObject(x, 'pure Lua')
	end
end

return p