luajit2 icon indicating copy to clipboard operation
luajit2 copied to clipboard

Processing Utf-16

Open AlexProfi opened this issue 5 years ago • 0 comments

Hello How print strings , that are in utf-16 encode for example \U041C\U043E\U0441\U043A\U0432\U0430 I use this lib https://github.com/bungle/lua-resty-unistring and this is my code

local us = require "unistring"
local sprintf = string.format
sprintf( ISSUER: %s ,
      us.str.u16_to_u8("\041C\043E\0441\043A\0432\0430"))

And I get error unistring/str.lua:65: declaration specifier expected near ') How to resolve it?

AlexProfi avatar Mar 13 '19 18:03 AlexProfi