File (encodeURI ("/Users/MyName/Desktop//MyFileNameWithö.jpg"));
which replaces the non-ASCII characters with their hex value.
Tried it, but it didn't help at all. It complains same thing thru exception "The file specified by the href attribute cannot be found or is not importable"
What do you get when you try this:
(File (encodeURI ("/Users/MyName/Desktop//MyFileNameWithö.jpg"))).exists;
true or false?
It exists even if I don't use encodeURI function , but the result is the same : file cannot be found for href or is not importable.
But as soon as I remove the Extended Ascii char from the file name, it works fine.
I'm confused now.
Well, I can't get .setContent () to work at all, with or without extended characters in the file name, regardless of file type. It looks as if there's something wrong with setContent(). It's supposed to "replace the content of the XML element with content imported from a file" and return a new page item. But it returns nothing at all. Maybe Looks as if I'm just as confused as you, but perhaps someone who really knows something about xml can say something about it.