I am calling a python file from my script and passing a Hindi word. But the file is unable to read it. The code:
cmd = ['java', '-jar','jython-standalone-2.5.3.jar','pythonfile.py',word]
proc = subprocess.Popen(cmd, stderr = STDOUT, stdout = subprocess.PIPE, shell=True)
I tried to read the argument from the pythonfile:
print(sys.argv[1])
But I get ???
as the output.
When I pass a non-Hindi word, e.g. "word", I get the correct output.
Any clue as to why this is happening?
Thanks in advance.