[Mailman-i18n] German Umlauts in pipermail
Jan-Benedict Glaw
jbglaw@lug-owl.de
Mon, 8 Oct 2001 15:01:38 +0200
Hi!
I tried to make pipermail (read: HyperArch.pl) aware of german Umlauts.
They're normally MIME-Encoded, using iso-8859-1. I searched through
the existing code for "<" and ">" substitution as they're correctly
substituted by < and >. Then I worked out the patch below.
Unfortunately, "<" and ">" are working as before, but the other
substitutions are never executed:-( Could anybody please give me
some hints?
MfG, JBG
diff -Nru mailman-2.0.6/Mailman/Archiver/HyperArch.py mailman-2.0.6-jbglaw/=
Mailman/Archiver/HyperArch.py
--- mailman-2.0.6/Mailman/Archiver/HyperArch.py Mon Nov 13 22:50:05 2000
+++ mailman-2.0.6-jbglaw/Mailman/Archiver/HyperArch.py Mon Oct 1 16:24:38 =
2001
@@ -57,10 +57,28 @@
=20
=0C
def html_quote(s):
- repls =3D ( ('&', '&'),
- ("<", '<'),
- (">", '>'),
- ('"', '"'))
+ repls =3D ( ( '&', '&' ),
+ ( '<', '<' ),
+ ( '>', '>' ),
+ ( '=3D20', ' ' ),
+ ( '=3D3D', '=3D' ),
+ ( '=3DE4', 'ä' ),
+ ( '=3DF6', 'ö' ),
+ ( '=3DFC', 'ü' ),
+ ( '=3DDF', 'ß' ),
+ ( '=3DC4', 'Ä' ),
+ ( '=3DF6', 'Ö' ),
+ ( '=3DDC', 'Ü' ),
+ ( '=3DE9', 'é' ),
+ ( '=E4', 'ä' ),
+ ( '=F6', 'ö' ),
+ ( '=FC', 'ü' ),
+ ( '=DF', 'ß' ),
+ ( '=C4', 'Ä' ),
+ ( '=D6', 'Ö' ),
+ ( '=DC', 'Ü' ),
+ ( '=E9', 'é' ),
+ ( '"', '"' ))
for thing, repl in repls:
s =3D string.replace(s, thing, repl)
return s
--=20
Jan-Benedict Glaw . jbglaw@lug-owl.de . +49-172-7608481