isingkarim
Forum Replies Created
-
Forum: Plugins
In reply to: [SendPress Newsletters] Character encoding problemThanks
I will try.Forum: Plugins
In reply to: [SendPress Newsletters] Character encoding problemin class-sendpress-sender.php
with
function change($data,$input,$output){
$input = strtoupper(trim($input));
$output = strtoupper(trim($output));
if($input == $output) return $data;
if ($input == ‘UTF-8’ && $output == ‘ISO-8859-1’){
$data = str_replace(array(‘~B�’,’~@~^’,’~@~\’),array(‘EUR’,'”‘,'”‘),$data);
}
/* if (function_exists(‘iconv’)){
set_error_handler(‘sendpress_encoding_error_handler’);
$encodedData = iconv($input, $output.”//IGNORE”, $data);
restore_error_handler();
if(!sendpress_encoding_error_handler(‘result’)){
return $encodedData;
}
}
if (function_exists(‘mb_convert_encoding’)){
return mb_convert_encoding($data, $output, $input);
}
*/$data = iconv(‘UTF-8’, ‘ISO-8859-1//TRANSLIT’, $data);
/*
if ($input == ‘UTF-8’ && $output == ‘ISO-8859-1’){
return utf8_decode($data);
}
*/
if ($input == ‘ISO-8859-1’ && $output == ‘UTF-8’){
return utf8_encode($data);
}
return $data;}
it works for me
Forum: Plugins
In reply to: [SendPress Newsletters] Character encoding problemHi
Is there a quick fix I could make on the server ?
(using the charset iso-8859-1)Cheers
Karim
Forum: Plugins
In reply to: [SendPress Newsletters] Character encoding problemThanks
I can not manage to have a correct “-“
I have a ? insteadForum: Plugins
In reply to: [SendPress Newsletters] Character encoding problemHi
Here is the debug output :
WordPress Version: 3.5.1
SendPress Version: 0.9.5.3
PHP Version: 5.3.16
PHP Memory Limit: 256 MByte
PHP Memory Used: 29.13 MByte
MySQL Version: 5.1.66Database Tables:
wp_sendpress_subscribers_event OK
wp_sendpress_report_url OK
wp_sendpress_subscribers_status OK
wp_sendpress_subscribers OK
wp_sendpress_list_subscribers OK
wp_sendpress_queue OKPorts:
Port 25: blocked
Port 465: open
Port 587: open### Begin System Info ###
## Please include this information when posting support requests ##
Multi-site: No
SITE_URL: http://xxxx
HOME_URL: http://xxxxSP Version: 0.9.5.3
WordPress Version: 3.5.1Platform: Linux
Browser Name: Firefox
Browser Version: 24.0
User Agent String: Mozilla/5.0 (X11; Linux i686; rv
:24.0) Gecko/20100101 Firefox/24
.0Database Tables:
wp_sendpress_subscribers_event OK
wp_sendpress_report_url OK
wp_sendpress_subscribers_status OK
wp_sendpress_subscribers OK
wp_sendpress_list_subscribers OK
wp_sendpress_queue OKSending Method: SendPress_Sender_Website
PHP Version: 5.3.16
MySQL Version: 5.1.66-0+squeeze1-log
Web Server Info: ApachePHP Memory Limit: 256M
PHP Post Max Size: 64MWP_DEBUG: Disabled
WP Table Prefix: Length: 3 Status: Acceptable
Show On Front: page
Page On Front: Accueil #68
Page For Posts: Accueil #68Session: Disabled
Session Name: PHPSESSID
Cookie Path: /
Save Path: /tmp
Use Cookies: On
Use Only Cookies: OffUPLOAD_MAX_FILESIZE: 64MB
POST_MAX_SIZE: 64MB
WordPress Memory Limit: 40MB
WP_DEBUG: Off
DISPLAY ERRORS: On (1)
FSOCKOPEN: Your server supports fsockopen.ACTIVE PLUGINS:
…
SendPress: Email Marketing and Newsletters: 0.9.5.3
…CURRENT THEME:
Twenty Twelve: X.X
### End System Info ###
I am sending you an example email with the problem
should be
l’antre de la maison est l’oin
but got
l?antre de la maison est l?oin
in the emailif I put ' in the editing window, I got the correct character ‘
Cheers
Karim