Jump to content

 symbol being prepended to my £ symbols - Ideas?


zq29

Recommended Posts

I haven't coded anything to specifically use UTF-8, although, this pound sign is being used in the content of an e-mail that is being generated by my script, but sent using the phpmailer class - So, I guess there's the possibility that either that class is encoding it's output in UTF-8, or it's down to my mail client?

 

Will have a quick poke around in the phpmailer class, though I had this issue the other day on another project, where certain parts of the site would display the symbol fine, and other places I would get the same problem, but I wasn't doing anything out of the ordinary to cause the issue...

 

EDIT: No, phpmailer is using iso-8859-1 encoding too.

Just me typing it into my script - That's why I'm having difficulty understanding why this is happening!

<?php
//...
$content = "Your quote:\r\n\r\n".
           "Width: $width metres\r\n".
           "Length: $length metres\r\n".
           "Location: $location\r\n".
           "Surface: $s[name]\r\n\r\n".
           "Quote: GBP £$total\r\n".
           "Ref: $ref";
//...
?>

I'm not sure how PHP files are interpreted yet in terms of "high ascii" characters. This could be locale or server related. Does Apache have AddDefaultCharset? What about the e-mail programs? Is PHP Mailer explicitly setting a character set for the receiving end?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.