Bad Header warning

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christophe

    Bad Header warning

    Hello,

    I use php mail() function for a feedback form with the following header:
    Content-type: text/plain; charset=iso-8859-1

    Inside the body part of my message, I convert characters with accents using
    an hexadecimal or decimal value (for instance \xF4 or something like
    sprintf("%c",24 4) for ô.

    It does work, but when I use a character with accent inside the subject
    line, the email software displays the following warning inside the header of
    the incoming message : "X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data
    (char F4 hex) in message header 'Subject'."

    All characters display without any problems in the subject or body part of
    the message, but I dont't know what to do with the warning message.

    Thanks for any help.

    Christophe

  • John Dunlop

    #2
    Re: Bad Header warning

    Christophe wrote:
    [color=blue]
    > It does work, but when I use a character with accent inside the subject
    > line, the email software displays the following warning inside the header of
    > the incoming message : "X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data
    > (char F4 hex) in message header 'Subject'."[/color]

    encode any non-US-ASCII characters. q-encoding looks like:

    =?iso-8859-1?q?header_fiel d_value?=



    --
    Jock

    Comment

    • Christophe

      #3
      Re : Bad Header warning




      Le 27.7.2005 10:57, dans MPG.1d515bd7440 220af9896fc@new s.ntlworld.com,
      « John Dunlop » <usenet+2004@jo hn.dunlop.name> a écrit :
      [color=blue]
      > encode any non-US-ASCII characters. q-encoding looks like:
      >
      > =?iso-8859-1?q?header_fiel d_value?=
      >
      > http://www.ietf.org/rfc/rfc2047[/color]


      Thanks John for your answer, I got the picture.

      Christophe

      Comment

      • John Dunlop

        #4
        Re: Re : Bad Header warning

        Christophe wrote:
        [color=blue]
        > [John Dunlop wrote:]
        >[color=green]
        > > encode any non-US-ASCII characters. q-encoding looks like:
        > >
        > > =?iso-8859-1?q?header_fiel d_value?=
        > >
        > > http://www.ietf.org/rfc/rfc2047[/color]
        >
        > Thanks John for your answer, I got the picture.[/color]



        --
        Jock

        Comment

        Working...