Thanks for asking this question Ender. I don't have an answer but will benefit from it as well.

Phil Davis


On 1/9/14, 3:43 PM, Ender Nafi Elekcioglu wrote:
Hi,

Is there any way to deal with files whose filenames contain non-ascii chars?
Assume that *tFilename* is *specialFolderPath(“desktop”) & “/ağaç.png”*

_set the filename of image 1 to tFilename
results with an empty image.

_set the filename of image 1 to URLEncode(tFilename)
same, an empty image.
I even tried this:
_set the filename of image 1 to uniEncode(tFilename, “utf8”)
I know it’s kinda stupid but it was a desperate attempt.

The thing is I can’t control the filenames.
There are thousands of images in the server
and different people {editors} upload them.
Some of those so-called computer literate editors insist to name the files with 
non-ascii chars.
Since the underlying OS or the server doesn’t complain
{see, utf8 became a common standard for years if not decades}.
they don’t notice the error and I end up with the headache.


So, is there any workaround to make Livecode accept those files?


Thanks for all your help...

Best,

~ Ender
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

--
Phil Davis


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to