Skip to content

When I try to use the Chinese namespace in C# #662

Closed
@charSLee013

Description

@charSLee013

Environment

  • Pythonnet version:2.3.0
  • Python version:3.6.3
  • Operating System:Win 10

Details

Hi,

  • When I try to use the Chinese namespace in C#,Pythonnet will prompt memory corruption.
using System;
using Python.Runtime;

namespace 中文测试
{
    public class 中文
    {
        static void Main(string[] args)
        {
            using (Py.GIL())
            {
                dynamic sys = Py.Import("sys");
                Console.WriteLine(sys.verison);
                Console.ReadKey();
            }
        }
    }
}
  • The visual studio then prompts the following error.

error

  • How should I solve this problem in the Chinese namespace?

THANK YOU SO MUCH!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions