PDA

View Full Version : Use for French Users


OlijO
05-15-2008, 07:58 AM
Hello, I bought the spent year GAZ however I fast abandoned its use because indeed it didn't recognize accents (such as éèÃ*...) does anybody know the solution to correct this bug?
Beforehand thank you.

Morgan
05-15-2008, 03:44 PM
The charset used to send the newsletter might not necessarily be the charset that is used by the email reader. For example, in a newsletter I sent to myself, the ü in einfügen was changed to ü so in my email reader I saw einfügen (UTF-8) instead of einfügen (ISO-8859-1) though my email reader gave me the following message:

This message was written in a character set other than your own. If it is not displayed correctly, click here to open it in a new window.

Once clicked, the word einfügen appeared correctly. That said, if you know what charset you want to use, look for the following code in the gaz_class_process.php file:

$subject = $this->mailobj->encode_email_header(unhtmlspecialchars($subject, $unicode_decode), $encoding, false, false);

And beforehand you can set what charset you would like to try.

OlijO
05-17-2008, 06:30 PM
Hello, thank's for your reply, could you help me for the code the charset is :
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
How can i change your code?
$subject = $this->mailobj->encode_email_header(unhtmlspecialchars($subject, $unicode_decode), $encoding, false, false);

Morgan
05-17-2008, 06:36 PM
Before that line add the following and see how it works:

$message = utf8_decode($message);
$subject = utf8_decode($subject);
$encoding = 'ISO-8859-1';
$unicode_decode = false;

OlijO
05-18-2008, 07:15 AM
Before that line add the following and see how it works:

$message = utf8_decode($message);
$subject = utf8_decode($subject);
$encoding = 'ISO-8859-1';
$unicode_decode = false;


Thank's i will try your soluce as soon as possible (end of may).

jluerken
05-27-2008, 09:00 AM
Hi Morgan,

can we have a fix in a future version? I don't like the idea to edit files manually.
Every GAZ update you have to remember this and do it again so it should better be included automatically :-)

Morgan
05-28-2008, 03:49 PM
The charset used to send the newsletter might not necessarily be the charset that is used by the email reader, so this isn't technically a bug in the code and so the 'fix' isn't going to go in the code, though in the next version a hook can be added so you can use a plugin to avoid a file edit.