Subject: Character fonts

From: Mauro Copelli <[email-masked]>
Date: Fri, 16 May 1997 20:28:55 +0200

Hi,

	I usually receive messages in Portuguese, and after some changes in 
the configuration I managed to make Pine write words with special 
characters (like "ligações", for instance) in an understandable way. 
However, if words like that come in the subject (which is rather common), 
nothing works anymore. Even with the iso-8859 character set configurated, 
I get stuff like =?iso-8859-1?Q?Eha=ED?= in my messages. Any hint of how 
to fix this? I run Pine 3.91 on Unix.

	Best regards, 

+-----------------------------------------------------------+
| Mauro Copelli                       | E-mail:             |
| Onderzoeksgroep Theoretische Fysica | [email-masked]   |
| Universitaire Campus                |                     |
| Limburgs Universitair Centrum       | Fax: 32-11-268299   |
| 3590 Diepenbeek, Belgium            | Phone: 32-11-268218 |
+-----------------------------------------------------------+

---

From: [email-masked] (Sven Guckes)
Date: 16 May 1997 19:18:00 GMT

[email-masked] (Mauro Copelli):
> I get stuff like =?iso-8859-1?Q?Eha=ED?= in my messages.
> Any hint of how to fix this?

Looks like these characters will need "iso-8859-1" - not "iso-8859".  ;-)

> I run Pine 3.91 on Unix.

Upgrade!  Pine-3.96 has been out for a while!

Sven

-- 
Sven Guckes [email-masked] [960301] | Latest version: Pine-3.96
PINE Info Pages:  http://www.math.fu-berlin.de/~guckes/pine/
PINE Home Page :  http://www.washington.edu/pine/
PINE Email List:  Pine Information <[email-masked]>

---

From: Mauro Copelli <[email-masked]>
Date: Tue, 20 May 1997 10:59:51 +0200

> Looks like these characters will need "iso-8859-1" - not "iso-8859".  ;-)

Yep, sure, that's what I meant :-P. Still, it works only in the message 
itself, not in the "subject" line (which would be rather useful, one 
should agree). So, any clue?

	Thanks,

---

From: Robin S Socha <[email-masked]>
Date: Wed, 21 May 1997 12:03:03 +0200 (CEST)

-----BEGIN PGP SIGNED MESSAGE-----

  >> [email-masked] (Mauro Copelli):

[portugese headers]
  >should agree). So, any clue?

Yep. Anything not us-ascii doesn't have anything to do in the header. By
definition, the header is supposed to contain us-ascii only. Here's a
workaround for those of you using procmail (kindly made up for perl lusers
like me by era eriksson <[email-masked]> and Philip Guenther
<[email-masked]>:

:0 fh
* =\?ISO-8859-[0-9]+\?Q\?
|perl -pe 's#=\?ISO-8859-\d+\?Q\?(.*?)\?=#$s=$1;
$s=~s/\s+(\r?\n)/$1/g;'\
- -e '$s=~s/=\r?\n//g; $s=~s/=([\da-fA-F]{2})/pack("C", hex($1))/ge;'\
- -e '$s#ge;'

Hope that helps any.

Cheers,
Robin

- -- 
Robin S. Socha, M.A., Political Science Dept., Bonn University, Bonn
To get my pgp public key, send an e-mail with the subject "get pgp key"
GMC d++ s+:+ a- C++ UL++$>+++$ P+>++$ E>+ W- N+ o@ w--- M-- PS--- PE+++ Y+
PGP++>+++ t+() 5-- tv++(+) b+++ DI++ D+(++) G++>+++ e++>+++ h r++>+++ y+**