Title: Encoding problem on WooCommerce
Last modified: December 11, 2018

---

# Encoding problem on WooCommerce

 *  Resolved [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/encoding-problem-on-woocommerce/)
 * I using site in Hebrew and I have encoding problem on WooCommerce for the mail
   sent to client, the mail sent to the admin appears good but the mail sent to 
   the client do not appear good, the text is symbols like ×××× ×ª× ××ª×§×
   ×× ×××¢×ª × ××¦××ª ××××¤××. ×¤×¨×× ××××× × ×××¤××¢×× ×
   ×××:`
 * how to fix this?

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

 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/encoding-problem-on-woocommerce/#post-10975291)
 * Hello,
    This issue has been fixed in the latest version of the free plugin here.
   Do you use 2.8.3.1?
 *  Thread Starter [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/encoding-problem-on-woocommerce/#post-10977091)
 * I have 2.8.3.1, the admin get it good, but the customer do not
 *  [manesvenom](https://wordpress.org/support/users/manesvenom/)
 * (@manesvenom)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/encoding-problem-on-woocommerce/#post-10978463)
 * Hi Hannes,
 * Even I am using the latest version 2.8.3.1, it still has the encoding issue.
 * I finally (hopefully) found the root cause of this encoding issue, it is related
   to Preview Header Text filter.
 * Open class-haet-mail.php and go to line 362 to replace
 * From
 *     ```
       $pre_header_text = substr( strip_tags( $email['message'] ), 0, 200 );
       ```
   
 * TO
 *     ```
       $pre_header_text = mb_substr( strip_tags( $email['message'] ), 0, 200 );
       ```
   
 * Since non-english is a multibyte character and it should be sub string using 
   mb_substr function.
 * Great plugin. Thanks.
 * Regards,
 * Venom
 *  Plugin Author [Hannes Etzelstorfer](https://wordpress.org/support/users/haet/)
 * (@haet)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/encoding-problem-on-woocommerce/#post-10979637)
 * Thank you very much for your help. I just added this to the current release.
 *  Thread Starter [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * (@mstudioil)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/encoding-problem-on-woocommerce/#post-10982294)
 * Thanks for the new version

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

The topic ‘Encoding problem on WooCommerce’ is closed to new replies.

 * ![](https://ps.w.org/wp-html-mail/assets/icon-256x256.png?rev=1730334)
 * [Email Template Designer - WP HTML Mail](https://wordpress.org/plugins/wp-html-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-html-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-html-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-html-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-html-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-html-mail/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [mstudioIL](https://wordpress.org/support/users/mstudioil/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/encoding-problem-on-woocommerce/#post-10982294)
 * Status: resolved