At 4:34 PM -0800 1/2/08, Jim Lucas wrote:
tedd wrote:
 At 2:34 PM -0800 1/2/08, Jim Lucas wrote:
 This I think shows what tedd is looking for.

 so, from this I deduce that this should work.

 >> $submit = trim($submit, "\xA0\x20");

 What do you guys/gals think?

 > Nope, not a winner. But it produces some interesting results.
 >
I just added the trim() part in the third box down.

AFAICT it works like it should.  See for yourself.

http://www.cmsws.com/examples/html/form_encoding.php

Here is the output that I get with FF 2.0.0.11

_POST data is:
Name is submit
0000  A0 20 A0 20 43 6C 69 63  6B 20 4D 65 21 20 A0 20  ....Clic k.Me!...
0010  A0                                                .

What do you get?

That depends upon what Text Encoding my browser is set to.

However, the point is moot. I just tried a variation of your code, namely:

 $submit = trim($submit, "\xA0\xC2");

And it worked. So you were on the right track, just using the wrong HEX.

See my SOLVED post.

Cheers,

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

Reply via email to