Borrar filtros
Borrar filtros

Problem with displaying hebrew when moving files from windows to linux

3 visualizaciones (últimos 30 días)
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!

Respuestas (1)

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

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by