Subject: Re: Question about "=" encoding

From: Marc Herbert <[email-masked]>
Date: Mon, 17 Jun 1996 20:20:03 +0200

Tony Calguire wrote:
> 
> I know this isn't exactly the right place for this question, but I'm sure
> somebody here can answer it.
> What is it called when the upper-ASCII characters in a message get
> converted into their hex values, preceeded by equal signs (=7F =AB =FF)?
> 

-- 
Marc Herbert
	         [email-masked]   (MIME accepte)

Read for instance :
http://sunsite.auc.dk/RFC/rfc/rfc1521.html

---

From: [email-masked] (Sven Guckes)
Date: 19 Jun 1996 23:13:14 GMT

[email-masked] (Tony Calguire):
> Does this type of encoding/escaping have an official name?

"Quoted printable"

> Are there any simple utilities that can decode this kind message?

qpdecode:
perl -pe 's/\=([0-9A-Fa-f]{2})/chr(hex($1))/ge; s/\=\n//;'

qpencode:
#!/usr/bin/perl -p
s/([^\> n\t -~]|[ \t]$)/'='.sprin> tf("%02X",ord($1))/ge;s/(> .{70}[^=\n]{2})/$1=\n/;

Sven

--
Sven Guckes  [email-masked]
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=51=75=6F=74=65=64=20=55=6E=72=65=64=61=62=6C=65
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

---

From: Tony Calguire <[email-masked]>
Date: Sun, 16 Jun 1996 01:06:43 -0500

What is it called when the upper-ASCII characters in a message get 
converted into their hex values, preceeded by equal signs (=7F =AB =FF)?  
Does this type of encoding/escaping have an official name?  Are there any 
simple utilities that can decode this kind message?  Are there any Usenet 
newsgroups where I could ask questions about this type of encoding?

Thanks.

__
   _____________
  /_____  _____/  Tony Calguire
  _____/_/____
 / __________/    [email-masked]
( (__/ /____
 \__/ /____/
   / /
  /_/

---

From: Paul O Bartlett <[email-masked]>
Date: Mon, 24 Jun 1996 09:58:07 -0400

On Sun, 23 Jun 1996, Paul O Bartlett wrote (excerpt):

> : qpdecode:
> : perl -pe 's/\=([0-9A-Fa-f]{2})/chr(hex($1))/ge; s/\=\n//;'
> 
>     Any suggestions on how actually to _use_ these utilities with Pine?
> When viewing a usenet message with quoted printable in it, just piping
> the message to 'qpdecode' above as an executable shell script simply
> locks things up tight.  I had to break the connection and dial back in. 

    Someone emailed me that "perl" above really refers to Perl 5.  On
my system, if I want Perl 5 I have to say "perl5" because Perl 4 is
still alive and well.

    However, even after making the change, Pine still locked up on me. 
The display would ripple (possibly due to a screen refresh) and "PIPED
MESSAGE" would appear in the message bar at the top of the screen. 
(BTW, I am using Pine 3.94 and dialing in with a PC emulating a
vt100.)  Things would more or less be locked up tight.  I could Ctrl-Z
back to a shell prompt and kill the Pine process, but that is about
all.  The only other command Pine would respond to is '?' to get the
prompts at the bottom of the screen (since I run with the prompts off
since version 3.93), and even then, none of the prompts would work.

    I wonder if there is some sort of problem with the latchup between
Perl and Pine in my configuration (SunOS 4.1.4).  Any suggestions
gratefully received, because it is truly annoying to try to read
messages with QP characters in them untranslated.

Paul                             <[email-masked]>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key 
Home Page:  URL: http://www.access.digex.net/~pobart