-          newBodyPart.setCharset( oldBodyPart.charset() ); +            newBodyPart.setCharset( mCharset );
-          newBodyPart.setCharset( oldBodyPart.charset() );
+            newBodyPart.setCharset( mCharset );

This makes sure that the charset of the signed message part is always correct. Previously the charset was empty in the case of a signed message with attachments because then oldBodyPart is a multipart/mixed message part which doesn't (and need not) have a charset set

svn path=/trunk/kdenetwork/kmail/; revision=181390

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi