There are no reviewed versions of this page, so it may not have been checked for adherence to standards.

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