编码

2010年12月09日 星期四 下午 12:44

#foo.rb:
p‍uts "中文abc123".to_utf8


c:>foo.rb > a.txt

a.txt编码为 Unicode(UTF-8 without signature) - Codepage 

原文地址:https://www.cnblogs.com/lexus/p/1935413.html