1
niktarin
wrong enconding in contact message
  • 2004/4/5 19:52

  • niktarin

  • Just popping in

  • Posts: 28

  • Since: 2003/9/21


Hello all,

Thanks for anwering my questions so far :)

Here is an ohter.
I just notest it...
I am for some time now running my Greek language XOOPS site.
I was looking around for spell errors etc when I saw this:
I the contact module when I send a message it is enconded in iso-8859-1 although it should be in iso-8859-7(greek)
Here is a sample :

Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220]) by freemail.gr ; Mon, 05 Apr 2004 22:50:42 +0300
Received: from sc8-pr-web2-b.sourceforge.net ([10.5.1.32] helo=sc8-pr-web2.sourceforge.net)
by sc8-sf-sshgate.sourceforge.net with esmtp (Exim 3.36 #1 (Debian))
id 1BAa7F-0003ls-00
for <knoppel@freemail.gr>; Mon, 05 Apr 2004 12:50:41 -0700
Received: from nobody by sc8-pr-web2.sourceforge.net with local (Exim 3.22 #1 (Debian))
id 1BAa7E-00041m-00
for <knoppel@freemail.gr>; Mon, 05 Apr 2004 12:50:40 -0700
To: knoppel@freemail.gr
Subject: =?iso-8859-1?B?S25vcHBlbCAtINb88ezhIMXw6erv6e357d/h8g==?=
Received: from phpmailer ([212.205.208.153])
by knoppel.sourceforge.net with HTTP (phpmailer);
Mon, 5 Apr 2004 12:50:40 -0700
Date: Mon, 5 Apr 2004 12:50:40 -0700
From: =?iso-8859-1?B?S25vcHBlbA==?= <fs@users.sourceforge.net>
Message-ID: <6202fc36fff56dee89dfd49fdd2a0a43@knoppel.sourceforge.net>
X-Priority: 3
X-Mailer: phpmailer [version 1.65]
X-Mailer: PHP/4.1.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain;
charset="iso-8859-1"
Sender: nobody <nobody@users.sourceforge.net>
X-DSMTPFooter: true
X-Rcpt-To: <knoppel@freemail.gr>
Return-Path: <nobody@users.sourceforge.net>
X-UIDL: 1081194669.34611
Status: R
X-Status: N
X-KMail-EncryptionState:
X-KMail-SignatureState:

fd υπέβαλε τις παρακάτω πληροφορίες:
Email fs
URL dfdf
ICQ dfgdfg
Εταιρία dfgdfg
Τοποθεσία dfgdf
Σχόλια

dfgdfgdf

Mozilla/5.0 (compatible; Konqueror/3.1; Linux 2.4.22-xfs; X11)


Both the theme and browser are set to iso8859-7.

So why Am I getting messages in iso8859-1 format.
What is causing this problem?

Site is www.knoppel.org for anyone who wants to have a look

Thanks again
Nick

2
niktarin
Re: wrong enconding in contact message
  • 2004/4/5 21:19

  • niktarin

  • Just popping in

  • Posts: 28

  • Since: 2003/9/21


Looking a bit more into it.
I came to the conclusion that XOOPS does not pass on the charset wright to phpmailer
2 files seem to be responsable for this
1. xoopsmultimailer.php

There seems to be a line in the end that has to do with charset:
$formatted = sprintf('%s <%s>', '=?'.$this->CharSet.'?B?'.base64_encode($addr[1]).'?=', $addr[0]);

and
2. class.phpmailer.php

var $CharSet


so witch one is it :) ?

Nick

Login

Who's Online

225 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits