Re: Poll of sorts: Javascript Form validation or PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux