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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:17:26
Script start
Timing: Jan 19 2025 01:17:26
Module start 'layout'
Timing: Jan 19 2025 01:17:26
Module start 'content'
Timing: Jan 19 2025 01:17:27
Module end 'content'
Timing: Jan 19 2025 01:17:27
Script end

Main resources:

Total runtime0.6329 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 590.3906152.6406
Module start 'layout' 0.00500.0034 743.031339.4766
Module start 'content' 0.00840.6229 782.5078599.8047
Module end 'content' 0.63120.0016 1,382.312512.1484
Script end 0.6328  1,394.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5387160.0002
Check MTime0.00150.2344160.0001
Mysql Total
Database connection0.00070.103010.0007
Mysqli_queries0.568789.8624620.0092
Looping result0.00080.1190600.0000
Template Total0.600794.920.3004
Template load0.00270.421120.0013
Template processing0.598094.492120.2990
Template load and register function0.00010.016310.0001
states
state_id_array0.00120.192310.0012
state_identifier_array0.00080.126420.0004
Override
Cache load0.00250.3990350.0001
Sytem overhead
Fetch class attribute can translate value0.00070.106330.0002
Fetch class attribute name0.00140.215370.0002
XML
Image XML parsing0.00410.647430.0014
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00290.4503290.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs