Crusader Established Member โ 20 โ Impact 6 Feb 1, 2005 1K views 4 replies #1 I'm having a slight problem with the space character (0xCA) which can be made by alt 0160. I can't seem to strip it out. I've tried.... PHP: $post = str_replace( chr(0xCA), '', $post ); But they still get throught. Ideas?
I'm having a slight problem with the space character (0xCA) which can be made by alt 0160. I can't seem to strip it out. I've tried.... PHP: $post = str_replace( chr(0xCA), '', $post ); But they still get throught. Ideas?
Michau Established Member โ 20 โ Impact 3 Feb 3, 2005 #4 Are you sure that it is 0xCA in the string? Alt + 160 should (at least theoretically) give 0xA0, because 160 is A0 in hexadecimal.
Are you sure that it is 0xCA in the string? Alt + 160 should (at least theoretically) give 0xA0, because 160 is A0 in hexadecimal.