Title: Incorrect character encoding
Last modified: August 22, 2016

---

# Incorrect character encoding

 *  Resolved [lgustaw](https://wordpress.org/support/users/lgustaw/)
 * (@lgustaw)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/)
 * The emails sent are coded incorrectly Polish character (eg. ó, ł) set in the “
   Form Name”.
 * [https://wordpress.org/plugins/easy-wp-smtp/](https://wordpress.org/plugins/easy-wp-smtp/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Niklas](https://wordpress.org/support/users/niklasbr/)
 * (@niklasbr)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/#post-5448692)
 * +1 on this issue.
 * Swedish and Danish characters does not work
 * `ÅÄÖ` becomes `Ã…Ã„Ã–`
 * `øæ` becomes `Ã¸Ã¦Ë`
 *  Thread Starter [lgustaw](https://wordpress.org/support/users/lgustaw/)
 * (@lgustaw)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/#post-5448693)
 * I found a solution :-),
    use a different alternative plugin that encodes correctly
   eg. [https://wordpress.org/plugins/wp-smtp/](https://wordpress.org/plugins/wp-smtp/)
 *  [Niklas](https://wordpress.org/support/users/niklasbr/)
 * (@niklasbr)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/#post-5448694)
 * I fixed the plugin, replace row ~334 in file easy-wp-smtp.php with this, it also
   fixes the apostrophe bug in the other thread.
 *     ```
       /**
        * Function to test mail sending
        * @return text or errors
        */
       if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
       	function swpsmtp_test_mail( $to_email, $subject, $message ) {
       		$errors = '';
   
       		$swpsmtp_options = get_option( 'swpsmtp_options' );
   
       		require_once( ABSPATH . WPINC . '/class-phpmailer.php' );
       		$mail = new PHPMailer();
   
       		$from_name  = stripslashes( $swpsmtp_options['from_name_field'] );
       		$from_email = sanitize_email( $swpsmtp_options['from_email_field'] ); 
   
       		$mail->IsSMTP();
   
       		/* If using smtp auth, set the username & password */
       		if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ){
       			$mail->SMTPAuth = true;
       			$mail->Username = $swpsmtp_options['smtp_settings']['username'];
       			$mail->Password = $swpsmtp_options['smtp_settings']['password'];
       		}
   
       		/* Set the SMTPSecure value, if set to none, leave this blank */
       		if ( $swpsmtp_options['smtp_settings']['type_encryption'] !== 'none' ) {
       			$mail->SMTPSecure = $swpsmtp_options['smtp_settings']['type_encryption'];
       		}
   
       		/* Set the other options */
       		$mail->Host = $swpsmtp_options['smtp_settings']['host'];
       		$mail->Port = $swpsmtp_options['smtp_settings']['port'];
       		$mail->SetFrom( $from_email, $from_name );
       		$mail->isHTML( true );
       		$mail->Subject = apply_filters('the_title', utf8_decode( $subject ) );
       		$mail->MsgHTML( apply_filters('the_content', utf8_decode( $message ) ) );
       		$mail->AddAddress( sanitize_email( $to_email ) );
       		$mail->SMTPDebug = 0;
   
       		/* Send mail and return result */
       		if ( ! $mail->Send() )
       			$errors = $mail->ErrorInfo;
   
       		$mail->ClearAddresses();
       		$mail->ClearAllRecipients();
   
       		if ( ! empty( $errors ) ) {
       			return $errors;
       		}
       		else{
       			return 'Test mail was sent';
       		}
       	}
       }
       ```
   
 *  [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/#post-5448720)
 * Hi, is there any plan from the author to add this fix to the plugin? I have to
   deploy it in several sites and a manual edit is a burden…
 *  [wpecommerce](https://wordpress.org/support/users/wpecommerce/)
 * (@wpecommerce)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/#post-5448722)
 * Hi, I have just release an update to fix this issue. Please update the plugin
   and see how it goes.
 *  [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/#post-5448724)
 * Thanks!!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Incorrect character encoding’ is closed to new replies.

 * ![](https://ps.w.org/easy-wp-smtp/assets/icon.svg?rev=3158017)
 * [Easy WP SMTP – WordPress SMTP and Email Logs: Gmail SMTP, Office 365, Outlook, Custom SMTP, and more](https://wordpress.org/plugins/easy-wp-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-wp-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-wp-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-wp-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-wp-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-wp-smtp/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/incorrect-character-encoding/#post-5448724)
 * Status: resolved