Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

2505 Posts in 648 Topics- by 1313 Members - Latest Member: zeus

eTicket CommunitySupportInstallation Help & Software Support (Moderators: jason, Hummdis)Topic: High-ascii stripped from headers
Pages: [1]   Go Down
Print
Author Topic: High-ascii stripped from headers  (Read 1483 times)
0 Members and 1 Guest are viewing this topic.
addihetja
New Member
*

Karma: +0/-0
Offline Offline

Posts: 3


« on: October 15, 2009, 12:11:22 AM »

I've set up eTicket and after a bit of meddling with Debian's SMTP settings I've gotten it working. 
There is one slight bug, however: All high-ascii charters [I have tested] are being stripped from the mail headers (subject and name fields).

A text like "Þetta virkar" comes out like "etta virkar"; "Ménage à trois" shows as "Mnage trois", etc. 
Logged
Hummdis
Moderator
Super Member
*****

Karma: +13/-0
Offline Offline

Posts: 558



WWW
« Reply #1 on: October 16, 2009, 02:38:56 PM »

Try this: in your php.ini, .htaccess, or httpd.conf file, set:

Code: (php)
AddDefaultCharset UTF-8

Instead of iso-8859-1.

Remember that any changes made to php.ini or httpd.conf require that Apache be restarted.

This would be the best solution since searching the eTicket source code for 'encode_high(' does not yield any results, thus, the encode_high() function is not being used in eTicket.
Logged

Don't PM me directly for help.  Post to the forums, that's what they are for after all.  PM's to me that request help will be ignored.

Hummdis Communications - Freelance Website Design & IT Consulting
addihetja
New Member
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #2 on: October 23, 2009, 09:20:37 AM »

Quote from: Hummdis link=topic=625.  msg2378#msg2378 date=1255747136
Try this: in your php.  ini, .  htaccess, or httpd.  conf file, set:

Code: (php)
AddDefaultCharset UTF-8

I added this line to /etc/php5/apache2/php.  ini (right at the top) and restarted.   Its still the same; the high-ascii is stripped from the header info (the body is just fine). 

Do you have any other ideas I might try?

--
Edit: One thing I noticed: When I click on a ticket on the admin page and click Headers I see the source of the email:
Code:
From: =?iso-8859-1?Q?Arn=F3r_Kristj=E1nsson?= <user@example.com>
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Subject: =?iso-8859-1?Q?=DEJ=F3=F0=FErifar=E1=F0!?=

The first line is displayed in eTicket as
Code:
Arnr Kristjnsson
but should be displayed as
Code:
Arnór Kristjánsson

The subject line is displayed as
Code:
Jrifar!
but was sent as
Code:
ÞJóðþrifaráð!

Could it be that eTicket is unable to parse this?
« Last Edit: October 23, 2009, 09:34:11 AM by addihetja » Logged
Hummdis
Moderator
Super Member
*****

Karma: +13/-0
Offline Offline

Posts: 558



WWW
« Reply #3 on: October 23, 2009, 07:07:33 PM »

Maybe...however the headers show this:

Code:
Content-Type: text/plain; charset=iso-8859-1; format=flowed

Note that it's not UTF-8, but rather ISO-8859-1, which is Western European.

A search of the source code shows the results of:

class.phpmailer.php - Line 51

Change that line to:

Code: (php)
  public $CharSet           = 'utf-8';

You may also notice that the encoding declaration is on line 64.  You may want to change this to the options noted in the comment line 61.

Let me know if either of these help.
Logged

Don't PM me directly for help.  Post to the forums, that's what they are for after all.  PM's to me that request help will be ignored.

Hummdis Communications - Freelance Website Design & IT Consulting
addihetja
New Member
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #4 on: October 24, 2009, 01:31:20 AM »

Quote from: Hummdis link=topic=625. msg2400#msg2400 date=1256368053
Change that line to:

Code: (php)
  public $CharSet           = 'utf-8';

You may also notice that the encoding declaration is on line 64.   You may want to change this to the options noted in the comment line 61.

Let me know if either of these help.

I changed line 51 and tried all the examples given in line 64 (on line 61).  It's still the same.  Any other tricks?
Logged
Hummdis
Moderator
Super Member
*****

Karma: +13/-0
Offline Offline

Posts: 558



WWW
« Reply #5 on: November 03, 2009, 12:01:42 PM »

Nope. I'm fresh out of ideas and since I'm the only one that seems to be helping, this may be a dead end.  I'm sorry I couldn't be of any further help.
Logged

Don't PM me directly for help.  Post to the forums, that's what they are for after all.  PM's to me that request help will be ignored.

Hummdis Communications - Freelance Website Design & IT Consulting
eTicket Community
   

 Logged
Pages: [1]   Go Up
Print
eTicket CommunitySupportInstallation Help & Software Support (Moderators: jason, Hummdis)Topic: High-ascii stripped from headers
Jump to: