Changeset 170

Show
Ignore:
Timestamp:
09/01/07 19:18:03 (16 months ago)
Author:
jonas
Message:

fix utf8 problems

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r169 r170  
    22        o Added: autoresponder.pl: special X-Header vacation disable 
    33        o Added: special X-Header vacation to email user/admin frontend 
     4        o Fixed: autoresponder.pl. UTF-8 problems in body 
    45CpVES 0.05 2007-08-31 - Jonas Genannt - <jonas.genannt@brachium-system.net> 
    56        o Fixed: repaired listmailer.pl for access tinyint(1) column (T. Genannt) 
  • trunk/system_scripts/autoresponder.pl

    r169 r170  
    100100#Now check if autoresponder is enabled 
    101101my $dbh = DBI->connect($dsn, $config{'db_username'}, $config{'db_password'}); 
     102$dbh->do("SET NAMES utf8"); 
    102103 
    103104sub check_du_feature($$) { 
     
    213214        } 
    214215         
    215         ##UTF-8 fix: 
    216         if (! utf8::is_utf8($mail_text)) { 
    217                 utf8::decode($mail_text); 
    218         } 
    219         if (! utf8::is_utf8($subject)) { 
    220                 utf8::decode($subject); 
    221         } 
    222  
    223216        my $e_send_to = MIME::Entity->build( 
    224217                Type    => "text/plain",