home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!odin!fido!bedlam.asd.sgi.com!davis
- From: davis@bedlam.asd.sgi.com (Tom Davis)
- Newsgroups: comp.sys.sgi
- Subject: Re: zip - 8 bit ascii?
- Message-ID: <og471gk@fido.asd.sgi.com>
- Date: 12 Aug 92 18:41:07 GMT
- References: <1152@deere.com>
- Sender: news@fido.asd.sgi.com (Usenet News Admin)
- Organization: sgi
- Lines: 34
-
- Zip supports 8 bit characters. If such a character appears in the
- text, zip represents it as Xhh, where X is a funny-looking "x" in
- a box, and hh are two hex digits. Thus, control-C looks like:
- X03, where "X" is the funny looking character.
-
- There are a couple of ways to get non-ascii characters into the
- text, neither of which is perfect, but both work fine for a few
- characters.
-
- Method 1: Hold the Alt key down and type a (decimal) number, followed
- by the Escape key. To insert control-C, <A-3><Escape> does the
- trick. To add ascii control-Z (26 decimal), type: <A-2><A-6><Escape>.
- This doesn't work for the ascii nul character, but there's a work-
- around (hack around?) Use 256 and let zip mask off the top bit; type:
- <A-2><A-5><A-6><Escape>.
-
- Method 2: The <Control-V> character is a literal escape which will
- let you get in all the ascii characters: <C-v><C-c> inserts a literal
- control-C into the text. <C-v><C-v> adds a control-V. If you want
- a character above 127 (with the high-bit on), hold the Alt key down
- when you type the second character. Thus, to add ascii 131 = 0x83 =
- control-C with the high bit on, type: <C-v><C-A-c>. <C-A-c> means
- that you hold down both the control and alt keys when you type the
- "c".
-
- You can, of course, cut and paste the characters as well, once you
- get one copy into the file. You can also use method 1 to specify
- weirdo characters in search and replace strings, although currently
- zip is too stupid to display them properly in the dialog boxes --
- they appear there as asterisks.
-
- It's sort of entertaining to run zip on program binaries. If you're
- VERY careful, you can change strings, etc.
-
-