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!
0 件のコメント
回答 (1 件)
Ali Awad
2019 年 3 月 11 日
try adding the unicode for Hebrew to your system from language settings as in the attached picture...
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!