Describe the bug
when i want to create a TaskDefinition instance by using TaskDefinition td = ts.NewTaskFromFile(filePath);, it returns an error which error message is "System.Runtime.InteropServices.COMException:“(1,43)::ERROR: unable to switch the encoding”"
Environment (please complete the following information):
Net Frameowork 4.6.1:
version: 2.11.0
Additional context
the xml file content is in UTF-8 encoding
the xml filename has Chinese path
Describe the bug when i want to create a TaskDefinition instance by using
TaskDefinition td = ts.NewTaskFromFile(filePath);
, it returns an error which error message is "System.Runtime.InteropServices.COMException:“(1,43)::ERROR: unable to switch the encoding”"Environment (please complete the following information):
Additional context the xml file content is in UTF-8 encoding the xml filename has Chinese path