nim 转码
import "encodings" var ce = getCurrentEncoding() echo "current encoding name: ", ce var enc = encodings.open(ce, "UTF-8") echo enc.convert("你好,中文!")