Page 1 of 1

Comment and guestbook models

Posted: 31 Jan 2012, 12:22
by grimurnet
Hi,
I was wondering how it is possible to encode the text that gets sent to mail when someone comments or signs the guestbook. Because when people use specific letters it is not possible to read it in the mail. The text displays nicely when viewed through the model itself.

Re: Comment and guestbook models

Posted: 31 Jan 2012, 14:28
by Artur
Hi.
Try edit guestbook.php file (extras/powerPack/guestbook/guestbook.php)
Locate sendEmail function and this code line:
Code
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
Then replace iso-8859-1 by UTF-8 .
Should help.

Re: Comment and guestbook models

Posted: 01 Feb 2012, 12:31
by grimurnet
Artur wrote:Hi.
Try edit guestbook.php file (extras/powerPack/guestbook/guestbook.php)
Locate sendEmail function and this code line:
Code
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
Then replace iso-8859-1 by UTF-8 .
Should help.
It didn't change anything, here is what I get:

Grímsi posted comment in your gallery!

Grímsi says:
Þetta er prufa.. ÞÆÖÃ

It doesn't display the correct letters in my mailbox, but it does display correctly in the gallery itself.
These letters are the problem: íæþðé and more letters, but the problem is only in the message I get sent to my mailbox.

Re: Comment and guestbook models

Posted: 02 Feb 2012, 09:53
by Artur
Yes, I've checked and you were right.
I'll try fix this somehow until final V2.0

Re: Comment and guestbook models

Posted: 02 Feb 2012, 11:10
by grimurnet
Artur wrote:Yes, I've checked and you were right.
I'll try fix this somehow until final V2.0
Great, thanks :-)

Re: Comment and guestbook models

Posted: 02 Feb 2012, 11:21
by Artur
But, moment... I've checked with utf-8.
Now I've tryed with default iso-8859-1 and the letters (íæþðé) are ok in my email...

To be sure:
You posting message with letters íæþðé, but in your email the are like ÞÆÖà ?

Re: Comment and guestbook models

Posted: 02 Feb 2012, 11:39
by grimurnet
Artur wrote:But, moment... I've checked with utf-8.
Now I've tryed with default iso-8859-1 and the letters (íæþðé) are ok in my email...

To be sure:
You posting message with letters íæþðé, but in your email the are like ÞÆÖà ?
It is ok now in the guestbook, but not when someone adds comments, their text comes like this ÞÆÖÃ
Comments on photos