Problem with displaying hebrew when moving files from windows to linux

2 次查看(过去 30 天)
Hello,
I'm using matlab 2018R (both machines). I moved my MATLAB code and fig files from a windows environment to a linux environment and when I tried to open the files the hebrew characters became squares.
In the linux environment, after using fonts such as David CLM I can type and open locally saved files with hebrew characters without a problem. As i said, the problem is only when I try and open a file saved in a windows environment.
In linux:
unicode2native(native2unicode('משהו בעברית'))
fails because
slCharacterSet()
returns 'Windows-1252'
when I do
slCharacterSet('UTF-8')
unicode2native(native2unicode('משהו בעברית'))
it returns משהו בעברית
So I tried also applying it to the windows machine using the feature command (I don't have Simulink in the windows enviroinment):
feature('DefaultCharacterSet','UTF-8')
and then
feature('DefaultCharacterSet')
returns UTF-8, so I had high hopes for that but then it also failed....):
I guess I should somehow change the way matlab saves the file so it would be UTF-8 but I don't know how.
Please help!
Thanks!

回答(1 个)

Ali Awad
Ali Awad 2019-3-11
try adding the unicode for Hebrew to your system from language settings as in the attached picture...

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by