From 86fc583c262fc8d9396f646e5545039eaea3e182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Gu=C3=A9rard?= Date: Wed, 18 Jan 2012 00:41:23 +0100 Subject: [PATCH] Force multibyte functions internal encoding --- fonctions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fonctions.php b/fonctions.php index e87673c..a850d04 100644 --- a/fonctions.php +++ b/fonctions.php @@ -167,6 +167,8 @@ function validateEmail($email) function sendEmail( $to, $subject, $body, $headers, $param) { + mb_internal_encoding("UTF-8"); + $subject = mb_encode_mimeheader( html_entity_decode( $subject, ENT_QUOTES, 'UTF-8' ), "UTF-8", "B", "\r\n", 9 ) ; $encoded_app = mb_encode_mimeheader( NOMAPPLICATION, "UTF-8", "B", "\r\n", 6 ) ;