Forums / Install & configuration / Character encoding of email

Character encoding of email

Author Message

Siniša Šehović

Wednesday 07 December 2005 1:25:48 am

Hi

How can I change character encoding of email sent by feedback form?
I have changed charset from utf-8 to iso-8859-2 in site.ini.append.php but header is still Content-type: text/plain; charset=utf-8 after cache is cleared?!???

Any ideas?

S.

---
If at first you don't succeed, look in the trash for the instructions.

Łukasz Serwatka

Wednesday 07 December 2005 11:47:13 pm

I did quick test on 3.7.2 and this looks like a bug. Could you report it? The charset is read from i18n.ini.append.php instead of site.ini.append.php from [MailSettings].

Quick fix:

Replace in file lib/ezutils/classes/ezmail.php (line 80)

'charset' => eZTextCodec::internalCharset(),

with

'charset' => $this->usedCharset(),

That will fix problem.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Siniša Šehović

Friday 09 December 2005 5:40:25 am

Hi Lukasz,

thanx for quick reply.

That patch is working.

Still I have a strange output in Outlook!?!?!?

Body of a message is displayed right but field "FROM:" looks like is rendered with different characterset.

Don't know is this is a bug in Outlook2003 or eZp?
(OutlookExpress display FROM right)

This is a header info:

Date: Thu, 08 Dec 2005 16:45:06 +0100
From: =?UNKNOWN?Q?Kri=C5=BEnjak?= Slavko <nospam@server>
Subject: Something ...
To: Foo <xxxxx@server>
Message-id: <0IR6003G6RGYNB@server.org>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: 8BIT
Content-disposition: inline
User-Agent: eZ publish, Version 3.7.3
Original-recipient: rfc822;sinisa@server

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Jianjun Hu

Thursday 28 June 2007 7:29:32 am

This seems useful. I'll read it later.

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?