필터 지우기
필터 지우기

Why is it that special characters are not being recognized correctly in my standalone app?

조회 수: 4 (최근 30일)
"Why is it that special characters are not being recognized correctly in my script?
For instance,
msgbox("Time μs");
when I run the script file with this command, a message box displays "Time μs" as expected.
However, when I create a standalone EXE of the script created using deploytool in Matlab 2023a, the message box displays 'Time □s' instead. (symbol μ became empty square)
This was not an issue in Matlab 2019, and it's causing my code to fail. I use column names like "Time μs" to identify columns in a table.

답변 (1개)

Bruno Luong
Bruno Luong 2023년 9월 14일
편집: Bruno Luong 2023년 9월 14일
It looks like it related to mfile encoding. Through the compiler; the mfiles are encrypted and decrypted and run. May be one the the chain element do not consider correctly the enconding. The most workaround is to replace in the code 'µ' by char(181) or string(char(181)).
  댓글 수: 3
Bruno Luong
Bruno Luong 2023년 9월 15일
There is a default behavior change of source file encoding in R2020a IIRC (default UTF8). You may be affected by this specific change.
Vyshakh Pv
Vyshakh Pv 2023년 9월 15일
I appreciate your response. However, I'm disappointed that I chose Matlab for my implementation, especially considering its already limited backward compatibility. Furthermore, their tendency to make such changes only adds to the frustration.
(readtable method has been updated, which also broke my code)

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

카테고리

Help CenterFile Exchange에서 Testing Frameworks에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by