Is there any way (from Java) of opening a Movie where the filename
contains accented or foreign language Unicode characters?
The standard method of opening a movie I use is
QTFile qtf = new QTFile(...);
OpenMovieFile openFile = OpenMovieFile.asRead(qtf);
Movie movie = Movie.fromFile(openFile);
this throws a -43 fnfError if the filename contains foreign characters.
I have also tried
Movie movie = Movie.fromDataRef( new DataRef(qtf) );
and
Movie movie = Movie.fromDataRef( new DataRef("file://"+qtf.getPath() );
but both of these throw -2012 invalidDataRef. All three methods work
for simple all-ASCII filenames.
Internally I believe the first method above still uses FSSpecs which
is why it doesn't work, but surely this problem has been solved and
QuickTime 7 gives me some way of opening these files??
-Rolf