When trying to use TCST package for matlab getting this error in MATLAb 2024a "Caught "std::exception" Exception message is: Invalid character code sequence detected."

32 次查看(过去 30 天)
I am trying to use TCSTInterface to run and optimize some structures in CST MWS. When I try to open and run any CST file from MATLAB 2024a, the program throws me the error:
Caught "std::exception" Exception message is:
Invalid character code sequence detected.
This error is not observed on an older matlab version.
Kindly help.

回答(1 个)

Saurabh
Saurabh 2024-8-26
Hi Aditya
The presence of non-English characters in a file path is usually indicated by the warning "Invalid character code sequence detected".
You might want to look for non-English characters along the following possible paths:
  • Tempdir
  • Prefdir
  • Matlabroot
  • !hostname
You might be able to fix this mistake by changing any non-English characters in these pathways to regular English ones.
I hope this helps.
  1 个评论
Andrés
Andrés 2024-9-12
Hi Aditya,
Thank you for your suggestion. I’ve checked all the paths you mentioned, including tempdir, prefdir, matlabroot, and the hostname, and I can confirm that none of them contain any non-English characters. Despite this, I’m still encountering the same issue with the error message: "Invalid character code sequence detected."
Would you have any other recommendations or insights on how to resolve this issue?
Thank you in advance for your help.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by