Pages

22 novembre 2014

console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.

Voici une erreur que j'ai rencontré dans Eclipse après avoir installé Jython.

Problème : 
Lors du lancement d'un script jython, l'erreur suivante apparait dans la console : 
console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.

Solution :
Ajouter la propriété système suivante :
-Dpython.console.encoding=UTF-8
Note : Cela peut aussi ce faire dans le registre Jython.


Environnement :
  • Eclipse Luna
  • Plugin PyDev 3.9.0
  • Jython 2.7b3
Source : http://bugs.jython.org/issue2222