matlab2022​b更新之后monos​pace字体中文乱码​。

조회 수: 32 (최근 30일)
Ziyu
Ziyu 2025년 9월 3일 11:54
답변: Broy 2025년 9월 8일 6:20
最近,我在使用 MATLAB 2022b 时收到了更新提示,并按照指引安装了 r2022b update 10。更新完成后,发现在命令行窗口和 Figure 图窗中使用默认的等宽字体(monospace)时,中文字符会出现乱码。而在更新之前,相同环境下的中文显示完全正常。
我尝试重新安装未更新的 MATLAB r2022b 版本,但乱码问题依然存在。随后又安装了更新的 MATLAB r2023 版本,该问题仍未解决。
  댓글 수: 1
Ziyu
Ziyu 2025년 9월 3일 11:56
Recently, while using MATLAB 2022b, I received an update notification and proceeded to install r2022b update 10. After the update, I noticed that when using the default monospace font in the Command Window and Figure windows, Chinese characters were displayed as garbled text. Prior to the update, Chinese characters were displayed correctly under the same environment.
I tried reinstalling the original MATLAB r2022b without the update, but the garbled text issue persisted. I also installed the newer MATLAB r2023 version, but the problem still remains.

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

채택된 답변

Broy
Broy 2025년 9월 8일 6:20
Hi Ziyu,
I understand the issue you are facing is that, after installing MATLAB R2022b Update 10, Chinese characters in the Command Window and Figure windows started displaying as garbled text when using the default monospace font.
There are two possible workarounds for the issue you are facing:
1. Make sure that your system locale settings are configured according to the documentation, which you can access directly from your MATLAB environment by running the following command in the Command Window (Please note that this documentation is available in R2023a and earlier versions):
web(fullfile(docroot, 'matlab/matlab_env/setting-locale-on-windows-platforms.html?s_tid=doc_srchtitle'))
In particular, enabling the “Use Unicode UTF-8 for worldwide language support” checkbox in the Windows Region settings can help MATLAB consistently handle non-ASCII characters (as mentioned in the documentation) such as Chinese text.
Please note, however, that changing the system locale in this way can affect the behaviour of other software on your machine, so it is important to test carefully whether this setting works for your overall environment.
2. If the issue persists after these changes, I recommend updating your Windows system version (assuming you are using Windows OS). For Windows 10, please confirm that you are running version 20H2 or later, as earlier versions have limited UTF-8 locale support and may cause display issues.
Hope this helps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 安装和许可简介에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!