can't change encoding of text file
5 views (last 30 days)
while using the function fopen and textscan for text file i get this warning:
*Warning: The encoding 'windows-1255' is not supported.
See the documentation for FOPEN.
> In txt2mat at 16
> In Inversion at 11*
i googled the problem and found this:
if the problem is in the current encoding type, i can't change it the problem is that i can't change the encoding for example if i add this line to the function: slCharacterEncoding('Windows-1252') matlab won't run any commands.
this is my code (function): https://dl.dropboxusercontent.com/u/38094905/txt2mat.m
and this is few of the files that i'm trying to read:
don't understand this error and what am i doing wrong, but i do get unexpected resaults.
per isakson on 23 Dec 2014
Edited: per isakson on 23 Dec 2014
The code runs here (R2013a,Win7) without any problems
"Warning: The encoding 'windows-1255' is not supported."   Matlab doesn't support 'windows-1255', (see fopen). Is your computer configured with 'windows-1255'?
fid = fopen( adress, 'r', 'n','windows-1250' );
"slCharacterEncoding"   is a Simulink function. AFAIK: it has nothing to do with textscan