I've been happily using Matlab since release 4 (back in 1996), both in windows and in linux, without complains. However, still in 2012, seems that the mac version still lacks a basic feature like proper unicode support. Does anyone know how to properly display unicode characters in the builtin editor in mac osx? I'm using matlab 7.10.0.499 (R2010a) on osx lion (10.7.2). This can't be so hard, or can it be? Thanks in advance. Best regards, Juan
No products are associated with this question.
I do not have the Mac version to test with.
The Linux version appears, in my testing, to accept UTF-8 encoded .m files; e.g. I can store Thai with no difficulty. When byte sequences such as the ones for Tibetan are pasted in to the MATLAB editor on Linux, the execution-time recovery of the bytes is correct.
This doesn't answer about Mac, but it would be interesting to see what the MAC version did with such a file.
disp('பாமரராய் விலங்குகளாய், உலகனைத்தும் இகழ்ச்சிசொலப் பான்மை கெட்டு,')
In my ubuntu box, I can't copy paste this into matlab I get a lot of squares (non printable characters).
In mac I'm able to paste it, but and displays correctly, but displays only white spaces instead of the characters and the commas.
Thanks anyway.
I am using MATLAB R2008b on Ubuntu 10.04, with the environment variables
LC_NUMERIC=C
LANG=en_CA.UTF-8
It appears that we may be using the old X11 library, oldX11lib in place of ubuntu's "accelerated" version (which I gather does not follow X11 semantics properly in some places.)
I have my preferences set to use Monospaced 10 font for the editor, and "Use system font" for desktop display.
A lot of squares is not necessarily wrong; it can just mean you do not have the characters in your present font.
1 Comment
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/26244#comment_58010
By the way, I've already tried the obvious: feature('DefaultCharacterSet','UTF8')
and it does not work.