Clear Filters
Clear Filters

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."

19 views (last 30 days)
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.

Answers (1)

Saurabh
Saurabh on 26 Aug 2024
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 Comment
Andrés
Andrés on 12 Sep 2024 at 10:24
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.

Sign in to comment.

Categories

Find more on Characters and Strings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!