How do I get my MATLAB editor to display and read characters in another encoding?
16 views (last 30 days)
I need to read some m file written with comments in Japanses. However since my system locale is in Chinese, the comments displayed in the MATLAB editor is a total mess. When I change my system locale to Japanese, those comments can be displayed in the MATLAB editor correctly. I think those m file is in some Japanses enoding like Shift_JIS or EUC_JP, not in UNICODE. Can I solve this problem without changing my system locale?
Etsuo Maeda on 2 Apr 2019
As dpb menstioned, the answer is ... no.
As you expected, 'ja_JP.Shift_JIS' is used for Japanese encoding in Windows OS with Japanese locale.
you can confirm your MATLAB system encoding using following command:
As a workaround, please try to use an external text editor which can change text encoding.