jython在eclipse控制台出现Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0解决方法【转载】
**********
原文链接:http://blog.csdn.net/xfei365/article/details/50955731
**********
在用jython在eclipse中开发的时候,控制台的输出可能会出现
console: Failed to install ”: java.nio.charset.UnsupportedCharsetException: cp0.
这样一个错误,此时如果控制台的错误堆栈中有中文的时候,中文就会显示为乱码,解决办法为在要执行的代码上右键,
Run As>Run Configurations,选择第二个页签Arguments,在VM arguments中添加
-Dpython.console.encoding=UTF-8
即可,然后Apply>Run就行了.如下图
**********
原文链接:http://blog.csdn.net/xfei365/article/details/50955731
**********

浙公网安备 33010602011771号