View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06498Bug reportsSurvey participants (Tokens)public2012-09-20 14:12
Reporterlolo Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00RC8 
Fixed in Version2.00+ 
Summary06498: E-mails incorrectly encoded
Description

I noticed two issues while testing e-mails:

1) e-mails are not correctly encoded according to the chosen character set. It seems to be using iso-8859-1 instead of the chosen one.

Hint: tokens.php calls
Yii::app()->getConfig("emailcharset")
instead of
Yii::app()->getConfig("charset");
The latter is the correct config parameter name.

2) Token attributes (like {FIRSTNAME}) seem to be always converted to UTF-8 regardless of the configured charset. This causes an issue if the configured charset is not UTF-8 (in that names with accents are not correctly rendered).

Steps To Reproduce
  • create survey
  • create tokens
  • edit invitation email templates to contain accents (or other special characters)
  • send invitation email
  • check mail with Mail client (like Mozilla Thunderbird):
    1) view with default character set (taken from email=UTF-8) =>
    a) accents in text are not correcly rendered, but
    b) token attributes are correcly rendered
    2) change character set to ISO-8859-1 =>
    a) accents in text are correcly rendered, but
    b) token attributes are not
TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)120803
I will donate to the project if issue is resolvedNo
BrowserSafari 5.1.7 (Mac)
Database type & versionMysql 5.5.24
Server OS (if known)Linux 2.6.27.52
Webserver software & version (if known)Apache 2
PHP Version5.3.1.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-08-23 00:05

administrator   ~20573

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9418

lolo

lolo

2012-08-23 09:23

reporter   ~20575

Hello Carsten, not sure to understand the fix.
So the solution was to change the name of the config parameter (from 'charset' to 'emailcharset') defined in email.php, instead of changing the code in tokens.php ?
Thanks.

c_schmitz

c_schmitz

2012-08-23 10:21

administrator   ~20576

Yes, exactly. It was named the same way in LS 1.

Related Changesets

LimeSurvey: Yii 792f2b76

2012-08-22 14:54:18

c_schmitz

Details Diff
Fixed issue 06498: E-mails incorrectly encoded Affected Issues
06498
mod - application/config/email.php Diff File
mod - application/helpers/common_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-08-17 22:18 lolo New Issue
2012-08-20 22:30 c_schmitz Assigned To => c_schmitz
2012-08-20 22:30 c_schmitz Status new => assigned
2012-08-23 00:05 c_schmitz Status assigned => resolved
2012-08-23 00:05 c_schmitz Fixed in Version => 2.00+
2012-08-23 00:05 c_schmitz Resolution open => fixed
2012-08-23 00:05 c_schmitz Changeset attached => LimeSurvey Yii 792f2b76
2012-08-23 00:05 c_schmitz Note Added: 20573
2012-08-23 09:23 lolo Note Added: 20575
2012-08-23 10:21 c_schmitz Note Added: 20576
2012-09-20 14:12 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)