runprogram contains Chinese character in executable path

runprogram contains Chinese character in executable path

mail7WJMZ
Collaborator Collaborator
389 Views
3 Replies
Message 1 of 4

runprogram contains Chinese character in executable path

mail7WJMZ
Collaborator
Collaborator

[ FlexSim 22.0.1 ]

Hello,

I tried to execute an external program by using runprogram.

The command failed if program path contains Chinese character.

I guess this issue is related to char encoding.

0 Likes
Accepted solutions (1)
390 Views
3 Replies
Replies (3)
Message 2 of 4

joerg_vogel_HsH
Mentor
Mentor

Does not exist a path in default language setting you can use? I think independently from an local setting, all paths are internally addressed by an american english substitute or an 8 character long simplified path.

0 Likes
Message 3 of 4

mail7WJMZ
Collaborator
Collaborator

Somehow following reply got blocked by website, so I use image instead.screenshot-2022-03-28-111759.png

0 Likes
Message 4 of 4

philboboADSK
Autodesk
Autodesk
Accepted solution

You could put a batch file somewhere with an ASCII path, and then in the batch file use chcp to change the code page before executing the program with Chinese characters in the path.

1648850429614.png



Phil BoBo
Sr. Manager, Software Development