473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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",244) 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

Jul 27 '05 #1
3 8818
Christophe wrote:
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'."


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

=?iso-8859-1?q?header_field_value?=

http://www.ietf.org/rfc/rfc2047

--
Jock
Jul 27 '05 #2

Le 27.7.2005 10:57, dans MP************************@news.ntlworld.com,
«*John Dunlop*» <us*********@john.dunlop.name> a écrit*:
encode any non-US-ASCII characters. q-encoding looks like:

=?iso-8859-1?q?header_field_value?=

http://www.ietf.org/rfc/rfc2047

Thanks John for your answer, I got the picture.

Christophe

Jul 27 '05 #3
Christophe wrote:
[John Dunlop wrote:]
encode any non-US-ASCII characters. q-encoding looks like:

=?iso-8859-1?q?header_field_value?=

http://www.ietf.org/rfc/rfc2047


Thanks John for your answer, I got the picture.


http://www.php.net/manual/en/functio...mimeheader.php

--
Jock
Jul 27 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: None | last post by:
Hello, I am a total newbie to PHP and programming in general. I am playing around with a PHP / MySQL shopping cart script which I found at...
4
by: thule | last post by:
Okay, thanks to John (THANK YOU SO MUCH). I switched all my header files over to using the new Standard <iostream> and included the using namespace std; . This seems to have fixed all the errors I...
3
by: Eric Lilja | last post by:
Hello, I have a few global variables in my program. One of them holds the name of the application and it's defined in a header file globals.hpp (and the point of definition also happen to be the...
26
by: HP | last post by:
Hi guys i wana remove this warning which i am getting during my codcomilation. the warning is - Possible use of null pointer 'PnoSytGenericTest::_response' in left argument to operator '->'
60
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
16
by: jose_luis_fdez_diaz_news | last post by:
Hi, If I don't include <libgen.h> I get then warnig below in regcmp call: warning: improper pointer/integer combination: op "=" but if I include it the warning is not shown, but them program...
2
by: Siemel Naran | last post by:
I keep getting warning messages like these: ....\include\myfile.h(451) : warning C4251: 'MyClass::m_myvariable' : class 'CPtrArray' needs to have dll-interface to be used by clients of class...
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
4
by: gaurav.dube | last post by:
I am facing a problem with warning removal I have got a header file it contains extern declarations of lot of variables (say 100) This header file is included in hundreds of .c files. Some of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.