Special Character issue in mail subject..

Discussion in 'PHP' started by winterrose_black, Feb 17, 2012.

  1. #1
    Hi,

    Can anyone help me in solving the character issue in mail subject?

    I would like to print the subject with the text "ocenění" ... But i am receiving some junk values like " Ocenění ".... when i send mail through the PHP page.

    I used the code "$headers .= 'MIME-Version: 1.0';
    $headers .= "\nContent-Type: multipart/mixed;
    $message = <.........message.....>
    for the body section and it worked fine.. but for the "subject section" i tried many options, but it is not working.

    Thank you in advance.
     
    winterrose_black, Feb 17, 2012 IP
  2. mallorcahp

    mallorcahp Peon

    Messages:
    141
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mallorcahp, Feb 17, 2012 IP
  3. winterrose_black

    winterrose_black Peon

    Messages:
    100
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can any1 else help on this?
     
    winterrose_black, Feb 20, 2012 IP
  4. startdream

    startdream Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    28
    #4
    startdream, Feb 20, 2012 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    You're assuming that the recipient's email program can decode anything but pure text. You can't do that. Unless they have their computer set to the same language as you have yours set to, it's not safe to assume anything other than the standard ASCII set. (This includes HTML - many email clients don't parse HTML, they display it.)
     
    Rukbat, Feb 25, 2012 IP