Search…

X3 Photo Gallery Support Forums

Search…
 
grimurnet
Experienced
Topic Author
Posts: 360
Joined: 17 Dec 2010, 04:50

Comment and guestbook models

31 Jan 2012, 12:22

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.
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Comment and guestbook models

31 Jan 2012, 14:28

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.
 
grimurnet
Experienced
Topic Author
Posts: 360
Joined: 17 Dec 2010, 04:50

Re: Comment and guestbook models

01 Feb 2012, 12:31

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.
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Comment and guestbook models

02 Feb 2012, 09:53

Yes, I've checked and you were right.
I'll try fix this somehow until final V2.0
 
grimurnet
Experienced
Topic Author
Posts: 360
Joined: 17 Dec 2010, 04:50

Re: Comment and guestbook models

02 Feb 2012, 11:10

Artur wrote:Yes, I've checked and you were right.
I'll try fix this somehow until final V2.0
Great, thanks :-)
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: Comment and guestbook models

02 Feb 2012, 11:21

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 ÞÆÖà ?
 
grimurnet
Experienced
Topic Author
Posts: 360
Joined: 17 Dec 2010, 04:50

Re: Comment and guestbook models

02 Feb 2012, 11:39

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