How do I get my MATLAB editor to display and read characters in another encoding?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sinan Cai
le 30 Mar 2019
Réponse apportée : Etsuo Maeda
le 2 Avr 2019
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?
1 commentaire
dpb
le 30 Mar 2019
I don't think so...I'd suggest this worthy of a support request to TMW if you have support license for a workaround.
Best I can think of since the LOCALE is system-wide would be to find another application to display the file in while you work on it in the ML editor...but, I'll admit I don't know what that specific application might be. :(
I don't suppose there's any chance to use one of the online translation 'bots to make anything intelligible from the Japanese comments???
Réponse acceptée
Etsuo Maeda
le 2 Avr 2019
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:
feature locale
As a workaround, please try to use an external text editor which can change text encoding.
HTH
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Language Support dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!