home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12302 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  2.0 KB

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