Re: Translating filenames for command line?
Re: Translating filenames for command line?
- Subject: Re: Translating filenames for command line?
- From: Rainer Brockerhoff <email@hidden>
- Date: Tue, 1 Jan 2002 16:42:08 -0200
>
Date: Mon, 31 Dec 2001 11:27:34 -0500
>
From: David Feldman <email@hidden>
>
>
The command line seems to want these characters represented as numerical
>
equivalents (I'm presuming Unicode or ASCII?). For example, when I get the
>
shell to auto-complete one of these filenames it represents a bullet as
>
"\342\200\242" and an ellipsis as "\342\200\246".
As a side question - but probably related to this - how are we supposed to type an ellipsis (or any non-7-bit-ASCII character) into a @"" string?
I've been trying to put the ellipsis into menu items, with calls like [aMenuItem setTitle:@"Print..."], but I always get garbage in the menu instead of the ellipsis.
My source file is in UTF-8, and using [aMenuItem setTitle:@"Print\342\200\246"] gives the exact same garbage, so it seems that Project Builder is encoding the part between quotes correctly, but for some reason the compiler fails to recognize it (although it doesn't complain). Using the \Uxxxx escape sequence (which I saw recommended somewhere in a TFM) gives a compiler error, though.
TIA,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"Originality is the art of concealing your sources."
http://www.brockerhoff.net/ (updated Dec. 2001)