[ZendTo] Accentuated characters doesn't show correctly in mails sent by zendto v5

Bocquet Stéphane Stephane.Bocquet at mediapost.fr
Fri Feb 2 09:26:04 GMT 2018


Hello Francis,

I too have sometimes the problem and we try to figure out what is going on as, for me, the problem happens sometimes only.

I was thinking that it could be a mail server problem, but after some test in command line, our mail servers seems ok.
Could you do those tests too ? Here is a script I use on Debian 9.

#!/bin/sh

EMAILSUBJECT="Mail pour Stéphane"
EMAILTO="stephane.bocquet at entreprise.fr, stephane at mafamile.fr"

EMAILMESSAGE="/tmp/emailmessage.txt"

echo "<html><body>" > $EMAILMESSAGE
echo "<h1>Bonjour,</h1>" >> $EMAILMESSAGE
echo "<p>J'ai besoin d'une mise à jour.</p>" >> $EMAILMESSAGE
echo "<br/>" >> $EMAILMESSAGE
# echo "<p><img src="https://zendtoglbvprd1/images/mediashare.png" /></p></br>" >> $EMAILMESSAGE
echo "<p>Cordialement,</p>" >> $EMAILMESSAGE
echo "<p>Votre serveur bien dévoué.</p></body></html>" >> $EMAILMESSAGE

# mail -a "Content-Type: text/plain; charset=UTF-8" -s "$EMAILSUBJECT" "$EMAILTO" < $EMAILMESSAGE
# mail -a "Content-Type: text/html; Content-Transfer-Encoding: 8bit" -s "$EMAILSUBJECT" "$EMAILTO" < $EMAILMESSAGE
mail -a "Content-Type: text/html; Content-Transfer-Encoding: 8bit; Charset=UTF-8" -s "$EMAILSUBJECT" "$EMAILTO" < $EMAILMESSAGE

rm $EMAILMESSAGE

Also, could you send us the result of the “locale” command ?
root at zendtoglbvprd1:/opt/zendto# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

There should be .UTF-8 in the result of each line.

Next step, is this happening in all the emails ? or just sometime ?

Cheers,

De : zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] De la part de Francis
Envoyé : jeudi 1 février 2018 19:24
À : zendto at zend.to
Objet : [ZendTo] Accentuated characters doesn't show correctly in mails sent by zendto v5

Hello,

I just installed the new zendto v5. Thank you for the great work. The translations are very welcomed!

I found that mails sent in french don't show accents (it shows question mark instead). Even if I have 'UTF-8' set in preferences.php for the SMTPcharset variable, zendto send the mail as us-ascii.

Extract of the mail:
Content-Type: text/plain; charset=us-ascii
Content-Type: text/html; charset=us-ascii

A little strange thing is that I have accents in my EmailSubjectTag and that accent display correctly in the subject field. but the rest of the subject strip the accents (the subject display as "[Dépôt] (name) a d?pos? un fichier pour vous).

--
Francis


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20180202/d53bf55b/attachment-0001.html 


More information about the ZendTo mailing list