Choosing Scripting lang
snippet in lua

Choosing Scripting lang

user597

function utf8_length(str)
        return select(2, string.gsub(str, "[^\128-\193]", ""));
end