Hi..
Wanted to share for all those not getting your utf8 characters in subject.
Osticket 1.6.0 stable - clean install.
class-ticket.php
line: 1318
Find:
$sql= 'INSERT INTO '.TICKET_TABLE.' SET created=NOW() '.
',ticketID='.db_input($extId).
',dept_id='.db_input($deptId).
',topic_id='.db_input($topicId).
',priority_id='.db_input($priorityId).
',email='.db_input($var).
',name='.db_input(Format:($var)).
',subject='.db_input(Format:($var)).
',helptopic='.db_input(Format:($topicDesc)).
',phone="'.db_input($var,false).'"'.
',phone_ext='.db_input($var?$var:'').
',ip_address='.db_input($ipaddress).
',source='.db_input($source);
Right after insert:
if( mb_detect_encoding($var,"UTF-8, ISO-8859-1, GBK")!="UTF-8" )
{
$sql = utf8_encode($sql);
}
And if your outgoing emails is f...ed up after this:
class.email.php
line 178 & 233
Find:
$options=array('head_encoding' => 'quoted-printable',
'text_encoding' => 'quoted-printable',
'html_encoding' => 'base64',
'html_charset' => 'utf-8',
'text_charset' => 'utf-8');
Change to:
$options=array('head_encoding' => 'quoted-printable',
'text_encoding' => 'quoted-printable',
'html_encoding' => 'base64',
<STRONG><s>**</s> 'head_charset' => 'utf-8', <e>**</e></STRONG>
'html_charset' => 'utf-8',
'text_charset' => 'utf-8');
Have fun!