special characters problem in email

Discussion in 'PHP' started by dizyn, Jun 20, 2010.

  1. #1
    Hi,

    I am having a problem with characters like " é, å, ø " etc

    I have textarea for message, users submit messages and when they use characters like above it does not show correctly in email.

    any help?

    thank you
     
    dizyn, Jun 20, 2010 IP
  2. gelkamran

    gelkamran Guest

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi ,

    Have you set encoding to UTF-8 in html where is textbox is . Also set UTF to your database , and Email client .
     
    gelkamran, Jun 20, 2010 IP
  3. clox.c

    clox.c Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    UTF-8 is your friend! ;)
     
    clox.c, Jun 20, 2010 IP
  4. dizyn

    dizyn Active Member

    Messages:
    251
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    did

    it worked in email but not in outlook.. :(
     
    dizyn, Jun 20, 2010 IP
  5. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Have you set outlooks encoding to UTF-8 as well?
     
    lukeg32, Jun 20, 2010 IP
  6. vinoth2vinoth

    vinoth2vinoth Peon

    Messages:
    691
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Which version you are using?

    Hey but the end user is getting the message in correct format right?
     
    vinoth2vinoth, Jun 20, 2010 IP
  7. dizyn

    dizyn Active Member

    Messages:
    251
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    well if the end users is on outlook then not

    and if he is on gmail etc then ok..

    I am using outlook 2007

    can I set it to utf-8 in outlook?
     
    Last edited: Jun 20, 2010
    dizyn, Jun 20, 2010 IP
  8. vinoth2vinoth

    vinoth2vinoth Peon

    Messages:
    691
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    0
    #8
    vinoth2vinoth, Jun 20, 2010 IP
  9. dizyn

    dizyn Active Member

    Messages:
    251
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #9
    Solution:

    htmlentities($myText,ENT_NOQUOTES,"UTF-8");
    PHP:
     
    dizyn, Jun 20, 2010 IP