question

Steven Chen avatar image
0 Likes"
Steven Chen asked Phil BoBo edited

runprogram contains Chinese character in executable path

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.

FlexSim 22.0.1
runprogram
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

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 0 ·
Steven Chen avatar image Steven Chen Joerg Vogel commented ·

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

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo edited

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


1648850429614.png (24.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.