Problem with displaying hebrew when moving files from windows to linux
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Ali Awad
am 11 Mär. 2019
try adding the unicode for Hebrew to your system from language settings as in the attached picture...
0 Kommentare
Siehe auch
Kategorien
Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!