[freeside-commits] branch master updated. e293cc921e2382964cc9caba186d828a6646f84d

Mark Wells mark at 420.am
Wed Mar 12 14:10:49 PDT 2014


The branch, master has been updated
       via  e293cc921e2382964cc9caba186d828a6646f84d (commit)
      from  f32ff6851340686b53a757dc56dc3c8831b50395 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e293cc921e2382964cc9caba186d828a6646f84d
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Mar 12 14:10:34 2014 -0700

    more excruciatingly correct UTF-8ness in sent email

diff --git a/FS/FS/Misc.pm b/FS/FS/Misc.pm
index c598507..93445ab 100644
--- a/FS/FS/Misc.pm
+++ b/FS/FS/Misc.pm
@@ -154,6 +154,7 @@ sub send_email {
   
       unshift @mimeparts, { 
         'Type'        => ( $options{'content-type'} || 'text/plain' ),
+        'Charset'     => 'UTF-8',
         'Data'        => $options{'body'},
         'Encoding'    => ( $options{'content-type'} ? '-SUGGEST' : '7bit' ),
         'Disposition' => 'inline',
@@ -165,6 +166,7 @@ sub send_email {
         'Type'     => ( $options{'content-type'} || 'text/plain' ),
         'Data'     => $options{'body'},
         'Encoding' => ( $options{'content-type'} ? '-SUGGEST' : '7bit' ),
+        'Charset'  => 'UTF-8',
       );
 
     }
@@ -363,6 +365,7 @@ sub generate_email {
   $alternative->attach(
     'Type'        => 'text/plain',
     'Encoding'    => 'quoted-printable',
+    'Charset'     => 'UTF-8',
     #'Encoding'    => '7bit',
     'Data'        => $data,
     'Disposition' => 'inline',
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 3c0e3e7..39a810c 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1119,6 +1119,7 @@ sub generate_email {
     $alternative->attach(
       'Type'        => 'text/plain',
       'Encoding'    => 'quoted-printable',
+      'Charset'     => 'UTF-8',
       #'Encoding'    => '7bit',
       'Data'        => $data,
       'Disposition' => 'inline',

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Misc.pm      |    3 +++
 FS/FS/cust_bill.pm |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list