Current location: Hot Scripts Forums » Programming Languages » PHP » mail(), £ symbol and charsets


mail(), £ symbol and charsets

Reply
  #1 (permalink)  
Old 07-09-09, 12:20 PM
chambaz chambaz is offline
Newbie Coder
 
Join Date: Mar 2008
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
mail(), £ symbol and charsets

Hi.

A PHP script that sends out a confirmation email to customers is displaying £ symbols as funny characters £. I know it is something to do with the charset but no matter what I seem to set the content type or charset as it seems to come out the same way. If I change the character encoding in my email client to UTF-8 the £ symbols change to display correctly. This cannot be the answer though as it is happening for all the customers that use the website.

Has anybody experienced this problem before?

Thanks for any help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-09-09, 12:31 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Add a Content-Type/charset header to the mail:
Code:
Content-Type: text/plain; charset="utf-8"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 12:19 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.