Japanese UTF8 in pattern and not getting return

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Get right string while using UTF8 in pattern

  2. 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

  1. What solutions have you tried so far? Searched utf8. But utf8.find doesn’t exist. “◇” itself doesn’t work also.

You can use utf8.codes after that utf8.char something like:

local str = "ÆØÅ"
for _, c in utf8.codes(str) do
  print(utf8.char(c))
end

I want to make text in japanese

Thank you for your idea.
I found a way to do.