[SOLVED] Cannot Get UTF-8 Ticket Title from ASCII Email

Moderator: crythias

Post Reply
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

[SOLVED] Cannot Get UTF-8 Ticket Title from ASCII Email

Post by jason123 »

Hello,

I have created a module to filter incoming emails and create a ticket based on the specifications in the code. Everything works well except that the subject line from the email (the email has charset="us-ascii" set) has non-ascii characters and when the code filters the email and creates a ticket, the ticket's title converts those chars to diamon question marks.

Is there a way to convert an email's ascii subject line to utf-8 when the ticket is created so the ticket's title has the correct char set?

Note: I have no control over the emails being sent or else I would have them sent with charset="utf-8".

Thanks,
Jason
Last edited by jason123 on 31 Jul 2017, 20:17, edited 1 time in total.
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

Re: Cannot Get UTF-8 Ticket Title from ASCII Email

Post by jason123 »

For some reason, the test data (pushing to email server and pulling in through OTRS) was creating the issue, however, when real data was filtered through the system, the issue went away. Not sure what is going on exactly, but the issue has been resolved.
Post Reply