Message13152

Author mithunairani
Recipients mithunairani
Date 2021-01-28.07:09:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611817746.39.0.0853498760325.issue2916@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-01-28 07:09:06mithunairanisetrecipients: + mithunairani
2021-01-28 07:09:06mithunairanisetmessageid: <1611817746.39.0.0853498760325.issue2916@roundup.psfhosted.org>
2021-01-28 07:09:06mithunairanilinkissue2916 messages
2021-01-28 07:09:06mithunairanicreate