Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to call jython with the argument -C utf-8 (ExecuteScript - Python)
Labels:
- Labels:
-
Apache NiFi
New Contributor
Created ‎07-13-2022 07:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
