MATLAB incorrectly recognizes UTF-8 Korean character
22 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am using MATLAB R2015b on Windows 10. OS language is Korean.
I've put the followings in `startup.m`
feature('DefaultCharacterSet','UTF8');
feature('DefaultCharacterSet') % check
slCharacterEncoding('UTF-8');
slCharacterEncoding() % check
When MATLAB start, it says:
ans =
UTF-8
ans =
UTF-8
However, when I open a file coded with UTF-8, Korean characters are incorrectly displayed. On the left, the file is opened in Visual Studio Code, on the right, in MATLAB editor.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162968/image.png)
One thing is that,
import java.nio.charset.Charset
encoding = Charset.defaultCharset()
says
encoding =
x-windows-949
I think this is a root of the problem. Can I edit such configuration in Java for MATLAB?
Risposte (1)
Vaibhav Awale
il 6 Mag 2016
Hi,
You can try changing your font preference to check if this issue gets resolved.
Hope this helps.
Regards,
Vaibhav
0 Commenti
Vedere anche
Categorie
Scopri di più su Debugging and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!