Jython和python脚本编码不兼容

时间:2017-10-27 05:53:51

标签: python character-encoding jython

我在Python 3.5.4上创建了一个Python脚本。该脚本正在导入nltk。当我尝试使用Jython 2.7.1从java执行脚本时,它会给我以下错误。

    <access origin="http://groupkt.com" subdomains="true"></access>
    <access origin="*" subdomains="true"></access>
    <tizen:privilege name="http://tizen.org/privilege/internet"/>
    <tizen:privilege name="http://tizen.org/privilege/application.launch"/>

当我检查Python和Jython的默认编码时,结果分别是utf-8和ascii。

0 个答案:

没有答案