luautf8 icon indicating copy to clipboard operation
luautf8 copied to clipboard

utf8 decode

Open AlexProfi opened this issue 5 years ago • 4 comments

hello how to use it like I do it in python s=b"\xD0\x9C\xD0\xBE\xD1\x81\xD0\xBA\xD0\xB2\xD0\xB0"

print(s.decode("utf-8")) Москва lua 5.2 works similary lua5.2 Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio s="\xD0\x9C\xD0\xBE\xD1\x81\xD0\xBA\xD0\xB2\xD0\xB0" print(s) Москва

but lua 5.1 lua5.1 Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio

s="\xD0\x9C\xD0\xBE\xD1\x81\xD0\xBA\xD0\xB2\xD0\xB0" print(s) xD0x9CxD0xBExD1x81xD0xBAxD0xB2xD0xB0

how to make similar as in python or lua 5.2 with this lib? what function I need to use?

AlexProfi avatar Mar 14 '19 09:03 AlexProfi