Re: Reading data from an NSTask [SOLVED]
Re: Reading data from an NSTask [SOLVED]
- Subject: Re: Reading data from an NSTask [SOLVED]
- From: Will Mason <email@hidden>
- Date: Mon, 4 Jul 2005 19:01:56 -0700 (PDT)
> Re Unicode: That is wrong (at least for errors) it should be
> "NSUTF8StringEncoding." Saw that after pressing the send button.
The text encoding that the tool to which you are connecting uses can
depend on many factors, including what exactly the tool is designed to
do. Chances are, though, that if the tool is expecting to write to a
terminal, then it will use the default encoding for a terminal on the
platform you're using. I looked but couldn't find any documentation on
what the default terminal encoding for OS X is, but I would guess that
UTF-8 is correct. Can someone clarify that, please? If your program can
run on other platforms (via GNUstep, for example), then you'll have to
adjust your assumptions about the encoding accordingly.
All I'm saying is that when it comes to text encodings, as with many
things in life, it can be dangerous to rely on an assumption. If I were
you I would make every effort to validate your assumption of UTF-8.
Cheers,
Will
_______________________________________________
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