Re: First stupid post of the year.

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

 



At 6:55 AM -0800 1/4/08, Jürgen Wind wrote:

FYI:
output of http://www.l-i-e.com/a/ in
SeaMonkey (Gecko, ),FF, default Char.encoding:Western ISO 8859-1 or UTF-8,
IE:
$_POST[a]: '     A     '
0:   (160)
1: (32)
2:   (160)
3: (32)
4:   (160)
5: A (65)
6:   (160)
7: (32)
8:   (160)
9: (32)
10:   (160)
str_replace: '     A     '
trim: 'A'

Opera 9.5beta (iso 8859-1 or utf-8)
$_POST[a]: ' A '
0: (32)
1: (32)
2: (32)
3: (32)
4: (32)
5: A (65)
6: (32)
7: (32)
8: (32)
9: (32)
10: (32)
str_replace: ' A '
trim: 'A'

Safari 3.0.4 (UTF-8)
$_POST[a]: '     A     '
0: ? (194)
1: ? (160)
2: (32)
3: ? (194)
4: ? (160)
5: (32)
6: ? (194)
7: ? (160)
8: A (65)
9: ? (194)
10: ? (160)
11: (32)
12: ? (194)
13: ? (160)
14: (32)
15: ? (194)
16: ? (160)
str_replace: '     A     '
trim: '     A    ?'

Safari 3.0.4 ("Westeuropäisch")
$_POST[a]: 'Â  Â  Â AÂ  Â  Â '
0: Â (194)
1:   (160)
2: (32)
3: Â (194)
4:   (160)
5: (32)
6: Â (194)
7:   (160)
8: A (65)
9: Â (194)
10:   (160)
11: (32)
12: Â (194)
13:   (160)
14: (32)
15: Â (194)
16:   (160)
str_replace: 'Â  Â  Â AÂ  Â  Â '
trim: 'Â  Â  Â AÂ  Â  Â'

(all on w2k)

(my humble) conclusion:

if('A'==$_POST['a'][5] or 'A'==$_POST['a'][8]) {
    //do stuff
}

or some such is what you need

Jürgen

Ahhh, I understand better now.

Humble conclusion or not, your investigation was impressive.

Thanks,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
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