It seems there is a problem specifying non-ascii characters in filenames to fopen. Do I need to encode these somehow?
Any help appreciated, dave r.
OSX10.6, English language, Swedish Region
Now, suppose I have a file called 'öäå.txt' (which, if we have problems with encoding, are ISO 8859-1 characters 246,228,229 followed by .txt). In Matlab:
I want to open the file:
id = fopen('öäå.txt','r','n','UTF-8') id =
As a workaround for a single file, I can use: >> D = dir('*.txt')
date: '17-Jun-2011 16:02:36'
>> id = fopen(D.name,'r','n','UTF-8')
but I would like a solution where I can actually specify the filename directly!