Re: [PHP] Storing £ (pound sterling) sign and displaying in HTML email
On Tue, Jun 3, 2008 at 12:06 AM, James Dempster [EMAIL PROTECTED] wrote: This is most likely a character encoding issue. Check that the html encoding is set to the same type as what your storing it as in mysql. Thanks James, it certainly was a character encoding issue. My dev box didn't have the default_charset set in php.ini. Cheers Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Storing £ (pound sterling) sign and displaying in HTML email
Could someone please point me in the right direction here please? I have a form textarea field (submitted using POST) that accepts free text that will include the likes of '£' (pound sterling symbol) that is written to a MySql database and later retrieved to output into an HTML email. I have been experimenting with htmlentities, htmlspecialchars and addslashes but still have the problem whereby I get ACirc; preceeding the pound; Could someone kindly suggest what I'm doing wrong and what function(s) I should be looking into? Thanks -- Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Storing £ (pound sterling) sign and displaying in HTML email
Graham Cossey wrote: Could someone please point me in the right direction here please? I have a form textarea field (submitted using POST) that accepts free text that will include the likes of '£' (pound sterling symbol) that is written to a MySql database and later retrieved to output into an HTML email. I have been experimenting with htmlentities, htmlspecialchars and addslashes but still have the problem whereby I get ACirc; preceeding the pound; Could someone kindly suggest what I'm doing wrong and what function(s) I should be looking into? You could just store the amount numerically (and optionally the currency if need be) and just put the pound; in your HTML file. -- Richard Heyes In Cambridge? Employ me http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive| ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Storing £ (pound sterling) sign and displaying in HTML email
This is most likely a character encoding issue. Check that the html encoding is set to the same type as what your storing it as in mysql. /James On Mon, Jun 2, 2008 at 10:26 PM, Graham Cossey [EMAIL PROTECTED] wrote: Could someone please point me in the right direction here please? I have a form textarea field (submitted using POST) that accepts free text that will include the likes of '£' (pound sterling symbol) that is written to a MySql database and later retrieved to output into an HTML email. I have been experimenting with htmlentities, htmlspecialchars and addslashes but still have the problem whereby I get ACirc; preceeding the pound; Could someone kindly suggest what I'm doing wrong and what function(s) I should be looking into? Thanks -- Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php