Re: [PHP] [NOT FIXED] Re: [PHP] strip out wierd characters in a string

2004-10-18 Thread Curt Zirzow
* Thus wrote Brent Clements: > Ok, I still have the problem. > > If I echo the string to a webpage, it still contains the ? > > So I viewed the source in a notepad, and the thing that shows up next to > "string" is a TM. > > I tried using htmlentities on the string that I'm echoing but the quest

Re: [PHP] [NOT FIXED] Re: [PHP] strip out wierd characters in a string

2004-10-18 Thread Brian
Note: The below function will also strip out tabs and newline characters. function str_clean($str) { for($i = 0; $i < strlen($str); $i++) { $tmp=ord($str[$i])) if ($tmp>31 && $tmp <127) { $new_str .= $str[$i]; } } return($new_str); } On Mon, 18 Oct 200

[PHP] [NOT FIXED] Re: [PHP] strip out wierd characters in a string

2004-10-17 Thread Brent Clements
Ok, I still have the problem. If I echo the string to a webpage, it still contains the ? So I viewed the source in a notepad, and the thing that shows up next to "string" is a TM. I tried using htmlentities on the string that I'm echoing but the question mark/tm is still there. Anybody know how