Various chats. This is needed for my rp server. The only problem is that Russian letters are displayed incorrectly.
I tried to make this script, but it doesn't work:
1
2
3
4
5
2
3
4
5
addhook("say","say_test") function say_test(id, txt) msg("UTF-8:"..txt.."") return 1 end
This one doesn't work either:
1
2
3
4
5
2
3
4
5
addhook("say", "say_test") function say_test(id, txt) msg("UTF-8:"..txt:gsub(".", function(t) return string.format("x%02X", t:byte()) end)) return 1 end
Maybe need to use this method: https://mothereff.in/utf-8#Привет
\xD0\x9F\xD1\x80\xD0\xB8\xD0\xB2\xD0\xB5\xD1\x82 = Привет
I don't know how to do that. Need help. @ MikuAuahDark: