Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
在openresty中怎样将byte数组转为中文
liyang1
各位好:
如题,我现在遇到了这样问题:
我通过ngx.req.read_body() local req_body = ngx.req.get_body_data() 获取到了客户端post来的数据,数据表示为16进制格式,通过lua的bitop库,我可以把这些数据表示为byte数组,
最终我需要将这些数据转为utf-8编码的中文,我应该怎么做呢?
liyang