Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Chinese encoding of the file is incorrect when the file is added asynchronously Aras 11 SP 12 #58

Open
1456877141 opened this issue Sep 20, 2024 · 0 comments

Comments

@1456877141
Copy link

Hello

When I use AddFile method with ApplyAsync to upload files, I encounter a Chinese file name encoding error, the code is as follows.

var conn = Common.Connection;

UploadCommand upload = conn.CreateUploadCommand();
//upload.AddFile(@"F:\Test\01-00 Test.sldprt");
upload.AddFile(@"F:\Test\01-00 测试.sldprt");

var file = await conn.ApplyAsync(upload, true, false);

The exceptions I'm getting:

{<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="http://www.aras.com/InnovatorFault">
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Saving file 01-00 ??.sldprt to transaction directory failed.</faultstring>
<detail><af:legacy_detail>Saving file 01-00 ??.sldprt to transaction directory failed.</af:legacy_detail><af:legacy_faultactor /></detail></SOAP-ENV:Fault></SOAP-ENV:Body>
</SOAP-ENV:Envelope>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant