|
From: Mithun <re...@bu...> - 2021-01-28 07:09:41
|
New submission from Mithun <mit...@gm...>:
My Java code :
PythonInterpreter interp = new PythonInterpreter() {
{
cflags = new CompilerFlags(CompilerFlags.PyCF_SOURCE_IS_UTF8);
}
};
String outputPath = "C:\\views\\mithun.txt";
interp.setOut(new PrintWriter(new OutputStreamWriter(new FileOutputStream(outputPath), "UTF-8")));
String execScript = "abc = '헬로우'\r\n" +
"print \"Printing Korean : \", abc";
interp.exec(execScript);
Doesnt pring the Koren characters correctly.
----------
components: Any
files: korean_error.PNG
messages: 13152
nosy: mithunairani
severity: normal
status: open
title: Saving output of script which has korean string to a file
type: behaviour
versions: Jython 2.7.2
Added file: https://bugs.jython.org/file1693/korean_error.PNG
_______________________________________
Jython tracker <re...@bu...>
<https://bugs.jython.org/issue2916>
_______________________________________
|