Support Questions

Find answers, ask questions, and share your expertise

How to call jython with the argument -C utf-8 (ExecuteScript - Python)

avatar
New Contributor

https://community.cloudera.com/t5/Support-Questions/ExecuteScript-python-2-7-not-working-as-expected...

 

 

in continuation with that question,

 

Also m using docker, https://github.com/apache/nifi/blob/main/nifi-docker/dockermaven/Dockerfile

 

No matter what I do,

tried sys.setdefaultencoding()

also this

# -*- coding: utf-8 -*-

.Jython is not changing unicode to byte.

 

Every string is u'some string' and not b'some string', due to this other functions are getting hampered.

Similar issue https://stackoverflow.com/questions/12158747/jython-unknown-enocoding-ms932-on-japanese-system , so wanted to try passing argument.

 

 

Stuck in this since 5 days. Any help guys!

 

 

 

0 REPLIES 0