require 'iconv'
input_encode='gbk'
out_encode='utf8'
new_words=Iconv.new(out_encode,input_encode).iconv('我是utf8编码滴~!')
RUBY 的编码转换
最新推荐文章于 2022-03-16 03:41:03 发布
require 'iconv'
input_encode='gbk'
out_encode='utf8'
new_words=Iconv.new(out_encode,input_encode).iconv('我是utf8编码滴~!')