i replaced (in class Parser, method fromFile)
StreamReader sr = new StreamReader(File.OpenRead(filename), System.Text.Encoding.ASCII);
with
StreamReader sr = new StreamReader(File.OpenRead(filename), System.Text.Encoding.Default);
and PythonEngine.ExecuteFile() now display correctly
在05-8-11,徐宁
Just use the example shiped with IronPython9.0.
Add a class named Embed5
public class Embed5
{
//the file to be executed
const string fileName = @"D:/TestChinese.py";
public static void Run()
Would it be possible for you to send us a short code snippet that you had
problem with? I would like to find out whether the problem is in parsing,
encoding usage, etc.
Martin
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
??Sent: Wednesday, August 10, 2005