[rt-users] Handling foreign characters

Jesse jesse at fsck.com
Thu Nov 30 23:48:51 EST 2000


http://lists.fsck.com/pipermail/rt-users/2000-August/000818.html

or http://www.fsck.com/pub/rt/contrib/subject-encoding.README




On Thu, Nov 30, 2000 at 10:39:34PM -0200, Hermann Wecke wrote:
> As most of my transactions are written in a foreign language, every time an 
> user sends a message with a foreign character, the RT is "changing" the 
> subject to a lot of garbage that begins with "ISO-8859-1".
> 
> How can I strip this out? Either converting the subject to a plain text or 
> doing something to avoid this garbage being recorded.
> 
> I have a RegEx to handle this "job":
> 
> $subject=~tr/áéíóúâêîôûàèìòùäëïöüãõçñÁÉÍÓÚÂÊÎÔÛÀÈÌÒÙÄËÏÖÜÃÕÇÑ/aeiouaeiouaeiouaeiouaocnAEIOUAEIOUAEIOUAEIOUAOCN/;
> 
> Where is the correct place to include it? Maybe I found a good place: at 
> /lib/rt/database.pm...
> 
> Or should I use the stripmime, from David Troy???
> 
> Thanks,
> 
> 
> Hermann
> (using RT 1.0.5) 
> 
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 

-- 
jesse reed vincent -- root at eruditorum.org -- jesse at fsck.com 
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

Any e-mail sent to the SLA will immediately become the intellectual property
of the SLA and the author of said message will enter into a period of
indentured servitude which will last for a period of time no less than seven
years. 




More information about the rt-users mailing list