Skip to content

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

@1456877141

Description

@1456877141

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>}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions