Thanks for the thread, saved me a lot of time!
There seems to be some fixes to this bug in 5.1.0a.
I needed a quick fix for this immidiately for 5.1.0 and
it looks like that In Sugar 5.1.0a this bug is fixed like this:
Code:
Change row 280:
$this->Subject = $locale->translateCharsetMIME($subjectUTF8, 'UTF-8', $OBCharset);
to:
$this->Subject = $locale->translateCharset($subjectUTF8, 'UTF-8', $OBCharset); Only difference is that MIME has been erased from the translateCharset:
The same problem seems to be with other fields also.
With only superficial testing everything seems to work. Here's the whole diff between 5.1.0 and 5.1.0a that handles the rest of the fields like to and for:
Code:
< $this->Subject = $locale->translateCharset($subjectUTF8, 'UTF-8', $OBCharset);
---
> $this->Subject = $locale->translateCharsetMIME($subjectUTF8, 'UTF-8', $OBCharset);
302c302
< $this->FromName = $locale->translateCharset(trim($this->FromName), 'UTF-8', $OBCharset);
---
> $this->FromName = $locale->translateCharsetMIME(trim($this->FromName), 'UTF-8', $OBCharset);
304c304
< $this->ReplyTo[$k][1] = $locale->translateCharset(trim($v[1]), 'UTF-8', $OBCharset);
---
> $this->ReplyTo[$k][1] = $locale->translateCharsetMIME(trim($v[1]), 'UTF-8', $OBCharset);
308c308
< $this->to[$k][1] = $locale->translateCharset(trim($toArr[1]), 'UTF-8', $OBCharset);
---
> $this->to[$k][1] = $locale->translateCharsetMIME(trim($toArr[1]), 'UTF-8', $OBCharset);
312c312
< $this->cc[$k][1] = $locale->translateCharset(trim($ccAddr[1]), 'UTF-8', $OBCharset);
---
> $this->cc[$k][1] = $locale->translateCharsetMIME(trim($ccAddr[1]), 'UTF-8', $OBCharset);
316c316
< $this->bcc[$k][1] = $locale->translateCharset(trim($bccAddr[1]), 'UTF-8', $OBCharset);
---
> $this->bcc[$k][1] = $locale->translateCharsetMIME(trim($bccAddr[1]), 'UTF-8', $OBCharset);
Bookmarks