xiongxin
11/9/2015 - 9:25 AM

nim 转码

nim 转码

import "encodings"

var ce = getCurrentEncoding()
echo "current encoding name: ", ce

var enc = encodings.open(ce, "UTF-8")
echo enc.convert("你好,中文!")