Skip to content

Commit

Permalink
Make sure PHP default character encoding is UTF-8
Browse files Browse the repository at this point in the history
Needed for htmlentities() call on line 173
  • Loading branch information
fbonzon committed Sep 17, 2015
1 parent 20112cc commit e1964dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/code_generator.phps
Expand Up @@ -45,9 +45,11 @@ $example_code .= "\n\n\$results_messages = array();";

$mail = new PHPMailer(true); //PHPMailer instance with exceptions enabled
$mail->CharSet = 'utf-8';
ini_set('default_charset', 'UTF-8');
$mail->Debugoutput = $CFG['smtp_debugoutput'];
$example_code .= "\n\n\$mail = new PHPMailer(true);";
$example_code .= "\n\$mail->CharSet = 'utf-8';";
$example_code .= "\nini_set('default_charset', 'UTF-8');";

class phpmailerAppException extends phpmailerException
{
Expand Down

0 comments on commit e1964dd

Please sign in to comment.