Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内容有中文字符时插件调用失败 #32

Closed
euzenlee opened this issue Jun 13, 2021 · 0 comments
Closed

内容有中文字符时插件调用失败 #32

euzenlee opened this issue Jun 13, 2021 · 0 comments

Comments

@euzenlee
Copy link

报错信息是:
java.lang.IllegalArgumentException: Cannot create PyString with non-byte value

搜索了一下,找到相关解决方案,将Core.kt里的
val input=textArea.text
改为
val input=Py.newStringOrUnicode(textArea.text)

然后下面使用input变量时,由PyString(input)改为 input即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant