Re: Poll of sorts: Javascript Form validation or PHP
| From: | Per Jessen | Date: | Mon, 08 Dec 2008 08:36:55 +0000 |
| Subject: | Re: Poll of sorts: Javascript Form validation or PHP | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284305@lists.php.net to get a copy of this message | ||
tedd wrote:
> At 5:10 PM +0100 12/7/08, Per Jessen wrote:
>> You cannot have 8bit characters to the left of the @ in the email
>> address.
>
>
> I'm not sure that's correct.
I am sure. In fact, the entire email header must not contain any 8-bit
characters. I.e. it _can_, but it is a violation of the standard, and
particularly in the email address it will cause problems, whereas it
will most probably work in the Subject:.
> I distinctly remember Paul Hoffman, the director of the Internet Mail
> Consortium (http://www.imc.org/) saying that the left side of the @
> has always been open to whatever characters you want to use.
I don't know him nor the IMC, but RFC2821 is fairly clear (as clear RFCs
can be) on the matter. Still, I think this W3 webpage says it very
clearly:
http://www.w3.org/Mail/unencoded-8bits.html
"W3C's mail servers are configured to reject messages with unencoded
8bit characters in the message email headers.".
> The "xn--" is the prefix for PUNYCODE. Previous
> algorithms (AMC, RACE, etc.) used other prefixes.
>
> After all is said and done, these were just ways to use 7 bit
> characters (unfortunately, the default for the Internet) to
> assemble/represent 8 bit characters.
Absolutely.
/Per Jessen, Zürich