View Issue Details

IDProjectCategoryView StatusLast Update
0016909mantisbtemailpublic2014-05-17 09:12
ReporterAndreR Assigned Todregad  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version1.2.15 
Summary0016909: Email notification in Russian doesn't work properly
Description

Whenever a cyrillic symbol appears in a sent notification, it's replaced by a question mark. All latin symbols work. This is similar to the old bug 0010136.

Is this due to misconfiguraion or an actual bug?

TagsNo tags attached.

Relationships

related to 0010136 closedgrangeway wrong email charset 

Activities

dregad

dregad

2014-01-31 08:36

developer   ~0039257

@Kirill, maybe you can assist on this one ?

Kirill

Kirill

2014-01-31 10:42

reporter   ~0039260

@AndreR, can you connect with me? http://www.kraeg.ru/contact

AndreR

AndreR

2014-01-31 11:03

reporter   ~0039261

@Kirill: Thanks in advance! My coworker Vitalij will contact you on Skype.

AndreR

AndreR

2014-02-03 04:39

reporter   ~0039304

Hm, we tried some stuff last Friday, but we haven't found a solution yet. According to Kirill, it must have something to do with the fact that we run a XAMPP server on a very old XP machine. We have activated all code pages, but that didn't work.

Maxim.Grishin

Maxim.Grishin

2014-05-06 05:15

reporter   ~0040212

Check if the line <code>$t_email_data->metadata['charset'] = 'utf-8';</code> is present in "email_store()" function. If the charset is assigned another value, consider fixing. Also check if the actual SMTP message sent contains a question mark in place of the cyrillic symbol. Also check if your viewer supports UTF-8 and has a correct font charset for cyrillic symbols (although in this case there will be squares instead of question marks). We here have cyrillic symbols everywhere and they are all parsed and viewed correctly.

dregad

dregad

2014-05-06 05:19

developer   ~0040213

AndreR, based on provided feedback, this would appear not to be a bug in MantisBT, so I am therefore resolving this issue as "no change required".

If it turns out to be a bug after all, feel free to reopen the issue with additional informatino.

AndreR

AndreR

2014-05-06 07:20

reporter   ~0040215

Maxim, the mail text actually contains only questionmarks. It's not just a displaying problem. The line $t_email_data->metadata['charset'] = 'utf-8'; is also present in email_api.php line 818.

Maxim.Grishin

Maxim.Grishin

2014-05-06 07:38

reporter   ~0040216

AndreR, try logging the email text from within email_send() function, if that logs OK, search Apache configuration for enabling Unicode.

AndreR

AndreR

2014-05-06 08:35

reporter   ~0040217

I just added a

file_put_contents("test.log",$t_message);

into line 817 of the same file. Inside the test.log file the encoding seems to be fine. It appears as it whould without any questionmarks in wrong places. It seems like the error appears somewhere later.

Any idea what I could try next? Im using XAMPP, by the way.

Maxim.Grishin

Maxim.Grishin

2014-05-06 10:03

reporter   ~0040218

What's your $g_phpMailer_method setting? Maybe you should shift to SMTP mailing, so that possible interference from Apache will be eliminated.

AndreR

AndreR

2014-05-06 10:17

reporter   ~0040219

We're already using SMTP (over a SMTP enabled Exchange address)

Maxim.Grishin

Maxim.Grishin

2014-05-06 10:28

reporter   ~0040220

Weird then. Check your Exchange transport logs if subject is parsed correctly by Exchange, and what is content type of emails sent by MantisBT. Check OWA access to one of the mailboxes that receive your email if it's viewed correctly via OWA. If nothing would help, reinstall XAMPP, probably upgrade it, and stuff it with backed up MantisBT base and code and check again.