You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Get right string while using UTF8 in pattern
-
What is the issue? Badge description is formatted with UTF8, and I tried to get Value from it.
This is function.
--この本を見つけた。◇場所: Sevan
print(txt)
local _,res = string.match(txt,".+%s(\x25\xC7).+: ("..".+"..")%1?")
print(tostring(_).."/"..tostring(res))
return res or ""
And this is output.
17:06:09.491 この本を見つけた。
◇場所: Sevan
17:06:09.492 nil/nil
- What solutions have you tried so far? Searched utf8. But utf8.find doesn’t exist. “◇” itself doesn’t work also.