sometimes in the MATLAB command line window, it will occur " Caught "std::exception" Exception message is: Invalid character code sequence detected."

조회 수: 43 (최근 30일)
sometimes in the MATLAB command line window, it will occur " Caught "std::exception" Exception message is: Invalid character code sequence detected."

채택된 답변

Tushar Sharma
Tushar Sharma 2023년 12월 4일
Hi jiang,
When you encounter the message "Invalid character code sequence detected", it typically indicates the presence of non-English characters in a file path.
You may want to check the following potential paths for non-English characters:
  • tempdir
  • prefdir
  • matlabroot
  • !hostname
By replacing any non-English characters with standard English characters in these paths, you may be able to resolve this error.
I hope this information proves helpful to you!
  댓글 수: 2
Andrés
Andrés 2024년 9월 12일
Hi Tushar Sharma,
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Performance and Memory에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by