I hope you understand the Title. :)
Content of Mail:
Could you include the original text of the message, that will make it easier to test a few things.
Also please attach / quote the full email with its headers if possible (you can remove your email address from that) ... What I want to see is if the system correctly made the multi part message as it should.
Emails contain multiple "versions" of the same text. One will always be text/plain, which is what the above looks like since there are no ascii characters for certain letters. After the text/plain version there should be a mime encoded version, probably in base64 or 7bit, which is capable of correctly displaying non ascii characters. And then there may even be more mime versions such as html or quoted printable. Generally its from least accurate to most accurate in order.
Your email client will pick the "best" one to display to you based on its settings and capabilities.
Original message with mail attached.
I understand your explanation, thank you. I don't need to remove my adress.
(I can find many others samples for you if nedeed).
Thanks, that helps, I'll see if I can determine what is going on
I'm still not sure
why or where this is occurring.
Looking at the sample email, it shows that characters
- à is being encoded as à ; plus a space, so what you see is "à "
- é is being encoded as à ;© ; so what you see is "é"
Somewhere the UTF-8 text is being treated/saved as Windows-1252 or ISO-8859-1 ... Meaning characters like é, which is a two byte character, is being treated not as a
single two byte character but as
two individual single byte characters. I have not been able to reproduce this behavior on my system.
Do you have any modifications installed that hook into the mail system?
I'm really not sure what to check next, I'm not even sure its an ElkArte issue, or system issue with setlocale, or some language/template file not saved as UTF8 .... or ....
Really kind of stumped right now.
Testing idea, maybe it's worthless, but it's the only I have so far: can you change for a while to English the language in your profile and see if it makes any difference?
Spud, I understand. We have also searching without success. (I have developers on my site).
I Will try to install a second Elkarte forum on my host, clean, without Mods and with the original language pack. I have many Mods installed.. :D
Thank you for your time !
Emanuelle: Ok, I will also test that.
Détail: I use Php for sending mail. First day after install, no mails arrive with SMTP.
Others Mails from the forum are ok.
I come back soon with results of try.
Tested:
New installed forum, in English only, no mods. Mail tested with php and Smtp.
https://forumtest.mpdb.tv/index.php
The problem remain the same. :o
Can you give me FTP access to that install so I can test a few things? Just PM me the details.
What I'm thinking is that the `during the HTML to MD conversion its getting converted for some reason, but need to test several things to find out exactly what.
Yes, with pleasure, done, PM Sended.
I have narrowed down the problem to our Html2Md.class.php file in the sources/subs directory .... This function is used to convert HTML to Markdown which we use for emails.
The issue is really with PHP's DomDocument function implementation which behaves differently on different versions of PHP as well as variants of *nix. This variation really is a PITA.
What we have now is a "trick" to let the function know that we want to handle all text as UTF8. We also use <xml which allows us to silence any markup errors found. You can find this trick recommended in many places and it has not failed ... until now !
$this->doc->loadHTML('<?xml encoding="UTF-8">' . $this->html);
Using the supplied FTP access (thank you!) I was able to test several things, and it appears that this will work for now
$this->doc->loadHTML('<?xml encoding="UTF-8"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body>' . $this->html . '</body></html>');
You can use that for now, but I have to check on a few things ... mainly I think we will need to capture the text inside <body>(.*)</body> to prevent a double wrapping (not an issue unless you are using the email reply capability)
Bravo Spuds ! You're the best
A friend developer who work on our projects had take a look and said me something about Markdown but he had no time for more searching.
I will use the fix, great.
We want try and use this function but not yet, In a few weeks or months
Big thank you. :)
That is sort of normal. LOL
Damn French always making it difficult ;)
Love from your Auld Alliance (Vieille Alliance) friends en Ecosse!
I have my forum in italian and we also have special caracters like é or è, but no problem on my emails. I send them through smtp
:D
"The oldest alliance of the world!"
For you my friend:
O Flower of Scotland
When will we see
Your like again,
That fought and died for
Your wee bit Hill and Glen
And stood against him
Proud Edward’s Army,
And sent him homeward
Tae think again.
Those days are past now
And in the past they must remain
But we can still rise now
And be the nation again
That stood against him
Proud Edward’s Army
And sent him homeward,
Tae think again.