Character encoding problem
-
Hi
I have a problem with character encoding. I had upgraded to 0.9.5.3.
The character ‘ appears as ? in the emails.
The charset is IS0-8859-1 (using UTF-8 is worse)
It worked before the upgrade
Thanks for any adviceCheers
Karim
-
Please click the following link for instructions on what info to provide support. Please remove your domain information from the text output.
http://sendpress.com/support/knowledgebase/what-information-should-i-provide-in-a-support-ticket/
Could you also send me a message with the email that has improper characters? Perhaps we can make a recommendation for what you should use.
Doug at sendpress dot com
Please reference this forum post so we can keep track of which issue your email is for. A screenshot it you would also be helpful to show us what it looks like on your computer.
Hi
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
Got your email. Will discuss with one of the developers and get back to you. Thanks.
Thanks
I can not manage to have a correct “-“
I have a ? insteadHi
Is there a quick fix I could make on the server ?
(using the charset iso-8859-1)Cheers
Karim
in 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
We can’t duplicate. We think it is something with your specific set up (server maybe). We are going to try to get an override put in the advanced settings so you can deal with it without having to fix the code with each update. Does that work for you?
.9.6 was just released. We tweaked some settings that we think will help. Let us know. If not we’ll put in the override for you.
Thanks
I will try.I have recently upgraded, and now I am experiencing the same problem, did anyone manage to solve this?
thanksWe have another encoding fix that will be released in. .9.7.
thanks, is there a release date?
We released an update last night. Try upgrading and let us know if it fixed your problem.
No, sorry. I updated this morning, but still have the same symbols appearing.
alex
Alex, what is your encoding set to currently?
IS0-8859-1?
The topic ‘Character encoding problem’ is closed to new replies.