forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Satyr on December 01, 2005, 05:45:10 am

Title: Re: Charset problems
Post by: Satyr on December 01, 2005, 05:45:10 am
I also have charset problems in e-cards. ๖ turns to รถ...  :o

I have german and unicode activated. Western does also not work. Then the names of the albums and links are corrupted.
With unicode only the comments  before the update. Comments entered after the updates are working correctly.
Really confusing. :(
Title: Re: Charset problems
Post by: fdejaigher on December 02, 2005, 10:51:33 am
I also have the same problem.

That's really annoying  :(
Title: Re: Charset problems
Post by: falconberg on December 10, 2005, 01:29:57 pm
Hello!

I've myself to add to the list of those where all none English (special German chars, Greek) letters get messed up. When I change the character coding of the received ecard in the mail client to UTF-8 it gets o.k.

When looking to the source of the received ecard it's sent with character coding iso-8859-1 and not with UTF-8 which would be necessary. Only the HTML-part is signed correctly with UTF-8. Where does it come from? Is it written by /include/mailer.inc.php or by /include/phpmailer.lang-en.php? Could anyone with better PHP knowledge pleas ehelp.  :-*

Thanks for all your efforts,
Herbert
Title: Re: Re: Charset problems
Post by: Nibbler on December 10, 2005, 01:42:57 pm
mailer.inc.php, find

Code: [Select]
   $mail->AltBody = $msg_body_plaintext;

after, add:

Code: [Select]
   $mail->CharSet = $charset;
Title: Re: Charset problems
Post by: falconberg on December 10, 2005, 09:45:26 pm
That's the solution to send multilingual ecards, works wonderful now - many thanks, Nibbler!!!

Herbert



Title: Re: Re: Charset problems
Post by: Nibbler on December 10, 2005, 10:09:16 pm
Fix committed to CVS.
Title: Re: Charset problems
Post by: fdejaigher on December 12, 2005, 10:14:48 am
Perfect !!!!!!!!!!!!!!

Thanks !!!
Title: Re: Re: Charset problems
Post by: EZ on December 15, 2005, 12:21:18 pm
All -

The solution will only work if the receiver's email client supports different charsets. Not all email clients do, in particular many web-based email services.

For guaranteed compatability I recommend to send emails in English using the plain Western chraset.

EZ.