View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
03935Bug reportsSurvey editingpublic2009-12-11 12:16
Reportersp00ky Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.86 
Fixed in Version1.87RC5 
Summary03935: Lotus Notes charset problem in PHPmailer 2.0.4 (LimeSurvey 1.86)
Description

Problem occurs in Lotus Notes (6.0.3).

  1. Add "$emailcharset = "UTF";" in config.php
  2. Send invitation
  3. Open invitation in Lotus Notes (there is problem with encoding - message contains some strange characters like "Jako?›Ä‡" not "Jako??".

Here is page source of mail sent via PHPmailer v 2.0.4
Content-Type: text/plain; charset = "UTF-8"
Content-Transfer-Encoding: quoted-printable

In mail sent via PHPmailer v 2.0.2 (no problem with encoding)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

It looks like PHPmailer adds some "extra quotas" in v2.0.4.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)7697
I will donate to the project if issue is resolved
Browser
Database type & versionMozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Server OS (if known)Windows 2003 Server SE
Webserver software & version (if known)Windows 2003 Server SE
PHP Version5.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

sp00ky

sp00ky

2009-12-02 15:28

reporter   ~10404

Last edited: 2009-12-02 15:34

  1. Add "$emailcharset = "UTF-8";" in config.php

That's a correct line added to config.php.
I forgot "-8" while reporting bug. In my config.php this line is correct ($emailcharset = "UTF-8";)

"extra quotas" = "extra quotes"

user372

2009-12-02 15:58

  ~10405

Please upgrade to v1.87RC4 and tell us, if you still can reproduce the issue - THX!
Background information: we upgraded to the lastest version of PHPMailer libary and many issues are fixed in that version!

user372

2009-12-03 23:57

  ~10435

@ sp00ky: any news? Please provide feedback!

sp00ky

sp00ky

2009-12-04 16:04

reporter   ~10452

ok, i've got 1.87RC3 (last possible to download)
and...
...it's not working :(

sp00ky

sp00ky

2009-12-04 16:06

reporter   ~10453

its 1.87RC4 (8004)
but it's still called 1.87RC3 in download section

user372

2009-12-04 20:08

  ~10463

@ c_schmitz: do you have an idea?

c_schmitz

c_schmitz

2009-12-05 22:18

administrator   ~10481

Well,

according to http://www.ietf.org/rfc/rfc2045.txt both forms are allowed
Question is if that is really the problem.

Sp00ky, is that really the only difference?

Also try
$emailcharset = "utf-8";
in config.php (not the lowercase)

I guess it is a bug in Lotus notes not handling the charset correctly.

c_schmitz

c_schmitz

2009-12-05 22:59

administrator   ~10484

I think I solved it - this bug is related to
http://sourceforge.net/tracker/index.php?func=detail&aid=2864280&group_id=26031&atid=385707

Fixed in rev 8081

sp00ky

sp00ky

2009-12-07 08:58

reporter   ~10499

Last edited: 2009-12-07 15:28

@c_schmitz I've tried "UTF-8", 'UTF-8', "utf-8", "Utf-8", UTF-8 and every possible combination :)

that's not because of quotes, but spaces before and after "=" (related link)

line
$result .= sprintf("Content-Type: %s; charset = \"%s\"", $contentType, $charSet);
should be replaced by
$result .= sprintf("Content-Type: %s; charset=\"%s\"", $contentType,
$charSet);

I've changed it in class.phpmailer.php and everyting is allright :)
Now it looks like this:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks a lot!

PS. this bug was reported on PHPMailer bugtracker in 2003 :))

Issue History

Date Modified Username Field Change
2009-12-02 15:23 sp00ky New Issue
2009-12-02 15:23 sp00ky Status new => assigned
2009-12-02 15:23 sp00ky Assigned To => user372
2009-12-02 15:23 sp00ky LimeSurvey build number => 7697
2009-12-02 15:23 sp00ky Database & DB-Version => Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
2009-12-02 15:23 sp00ky Operating System (Server) => Windows 2003 Server SE
2009-12-02 15:23 sp00ky Webserver => Windows 2003 Server SE
2009-12-02 15:23 sp00ky PHP Version => 5.2
2009-12-02 15:28 sp00ky Note Added: 10404
2009-12-02 15:34 sp00ky Note Edited: 10404
2009-12-02 15:34 sp00ky Issue Monitored: sp00ky
2009-12-02 15:58 user372 Note Added: 10405
2009-12-02 15:59 user372 Status assigned => feedback
2009-12-03 23:57 user372 Note Added: 10435
2009-12-04 16:04 sp00ky Note Added: 10452
2009-12-04 16:06 sp00ky Note Added: 10453
2009-12-04 20:08 user372 Status feedback => assigned
2009-12-04 20:08 user372 Assigned To user372 => c_schmitz
2009-12-04 20:08 user372 Note Added: 10463
2009-12-05 22:18 c_schmitz Note Added: 10481
2009-12-05 22:59 c_schmitz Note Added: 10484
2009-12-05 23:00 c_schmitz Status assigned => resolved
2009-12-05 23:00 c_schmitz Fixed in Version => 1.87RC5
2009-12-05 23:00 c_schmitz Resolution open => fixed
2009-12-07 08:58 sp00ky Note Added: 10499
2009-12-07 09:01 sp00ky Issue End Monitor: sp00ky
2009-12-07 15:28 sp00ky Note Edited: 10499
2009-12-11 12:16 c_schmitz Status resolved => closed
2010-10-25 00:17 c_schmitz Category Survey Design => Survey design
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing