Re: NSTask with non-ASCII paths
Re: NSTask with non-ASCII paths
- Subject: Re: NSTask with non-ASCII paths
- From: Ryan Stevens <email@hidden>
- Date: Fri, 7 Jan 2005 21:27:47 -0800
Perhaps stringByAddingPercentEscapesUsingEncoding: would work?
On Jan 7, 2005, at 5:24 PM, Kevin Ballard wrote:
It sounds like this is a bug with sips, not with NSTask. Have you
tried running the same command from the Terminal?
On Jan 7, 2005, at 6:45 PM, Andrew Zamler-Carhart wrote:
I have a method that uses NSTask to wrap a command-line tool called
sips (see sips --help for more info). Currently, it works great for
most files. However, files with any non-ASCII characters in their
paths cause this method to fail.
Here is the code that I am using. I need to be able to call
-setCurrentDirectoryPath: and -setArguments: with strings that may
contain foreign-language characters (Russian, Japanese, etc.)
[snip]
Does anybody have any suggestions for how to convert non-ASCII paths
so that NSTask and sips will communicate properly?
For what it's worth, I tried using NSTask to run ls, and it accepted
the non-ASCII paths just fine. So I'm not sure how ls and sips are
different in this regard.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden