Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ####--------------------------------####
- #--# Author: by uriid1 #--#
- #--# License: GNU GPLv3 #--#
- #--# Telegram: @main_moderator #--#
- #--# E-mail: appdurov@gmail.com #--#
- ####--------------------------------####
- --]]
- local function decode(str)
- local res = ''
- for s in str:gmatch('[^;]+') do
- local num10 = tonumber(s:match("%d+[ABCDEF]?"), 16)
- res = res .. utf8.char(num10)
- end
- return res
- end
- assert(decode('Алмазы') == 'Алмазы', 'Error')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement