Special characters like ŰÁÚŐÉÓÍ íáéűúőó

6 posts / 0 new
Last post
gyurci
Offline
Last seen: 10 years 1 week ago
Joined: 27/02/2014 - 20:37
Special characters like ŰÁÚŐÉÓÍ íáéűúőó

Dear Developers,
in e-mail "From" and "Subject" fields the coding maybe not perfect because for example these characters "ŰÁÚŐÉÓÍ íáéűúőó" look wrong. Could You tell me where and how can I change that?

Thanks in advanced!

Best regards,

George

eerol
Offline
Last seen: 9 years 2 months ago
Joined: 13/01/2015 - 18:40

Dear Developers,

I have same problem with characters äöåÄÖÅ. If some characters (äöå) is in the subject i can't see subject. How can i fix it?

Best regards,
Eero

Tomark
Offline
Last seen: 11 months 1 week ago
Joined: 14/01/2013 - 16:00

Thanks for reporting it, but could you please be more specific? Where exactly is the problem? Subject of the incoming emails? Subject of the ticket?

eerol
Offline
Last seen: 9 years 2 months ago
Joined: 13/01/2015 - 18:40

Problem is subject of the incoming emails (Viesti lisÀtty)
And if the user sends the mail with äö in the title. Sähköposti shown as S. Title is only S in Open tickets sites.

franzdoe
Offline
Last seen: 5 years 3 months ago
Joined: 02/09/2015 - 20:20

I can confirm this bug, which appears to be a duplicate of this one:
http://www.katak-support.com/en/content/special-characters-%C3%BC%C3%B6%...

All incoming e-mail header fields are getting truncated at the first hex-encoded special UTF8 character. I mostly encounter this issue with Subject and From fields.
For example, "=?UTF-8?Q?John=C5=A0Doe?=" gets truncated into "John" instead "JohnŠDoe"

franzdoe
Offline
Last seen: 5 years 3 months ago
Joined: 02/09/2015 - 20:20

So for anyone else is having issues with this bug, which was apparently adopted from OSticket, the proposed solution implemented in OSticket works for Katak Support.

In
include/class.mailfetch.php,
replace the mime_decode($text) function with

function mime_decode($text, $encoding='utf-8') {
if (function_exists('mb_detect_encoding'))
if (($src_enc = mb_detect_encoding($text))
&& (strcasecmp($src_enc, 'ASCII') !== 0))
return Format::encode($text, $src_enc, $encoding);
$str = '';
$parts = imap_mime_header_decode($text);
foreach ($parts as $part)
$str.= $this->mime_encode($part->text, $part->charset, $encoding);
return $str?$str:imap_utf8($text);
}

Source: https://github.com/osTicket/osTicket-1.7/issues/826#issuecomment-28581864

Would be nice if this bugfix, as well as the outgoing mail header UTF-8 encoding fix[1], were included in the master branch on github.

[1] http://www.katak-support.com/en/comment/85#comment-85