Can’t convert string from native encoding to ‘UTF-8’

默认环境执行不错,但是更换到shell就异常了,原来是因为没有设置字符集。备注下。


解决方法:
脚本中增加:

转载:http://blog.csdn.net/wenwenxiong/article/details/48008685文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/cannot-convert-string-from-native-encoding-snv/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/cannot-convert-string-from-native-encoding-snv/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

On this day in past years
January
5
 
Byrd
  • by Published onJanuary 5, 2019
  • 原文链接:https://note.t4x.org/error/cannot-convert-string-from-native-encoding-snv/