Re: PB Save As ASCII?
Re: PB Save As ASCII?
- Subject: Re: PB Save As ASCII?
- From: "Craig S. Cottingham" <email@hidden>
- Date: Thu, 14 Feb 2002 11:36:14 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, February 14, 2002, at 11:22 , Todd Blanchard wrote:
In copying some code off a web page tutorial, I have managed to embed
some whitespace character that the java compiler doesn't like. So I
figure all my code fits in ASCII, I'll just save the file as
plain ascii
and that should fix the problem.
Nope - there are a lot of encodings listed - but plain (lossy) ascii
isn't one of them.
This sucks. I'm going to have to retype the whole 2 pages of code by
hand because no utility I can find will save the text as lossy ascii.
The free version of BBEdit includes a "Convert to ASCII" tool.
For that matter, something like this from the command line should work:
perl -i.bak -pe 'tr[\200-\377][ ]' filename.java
- --
Craig S. Cottingham
email@hidden
PGP key available from:
<
http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41>
ID=0xA2FFBE41, fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F
0CEF A2FF BE41
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see
http://www.gnupg.org
iD8DBQE8a/WRE28M76L/vkERAq2lAJ40mCzWAL/OLDOBby1E+BbbujTxlQCguYdH
Jo/OT/BRtCN5H+sTSX4Uzyk=
=/VFR
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.