Remove characters other than ISO8859-1

Hi please help in writing a script for replacing all the non-iso8859-1 characters to question marks.

I need a pattern of this kind
"sed s/<non-iso char range>/?/g < ipfile > opfile"

Please help me in this.

My first solution to this would be to look at a table of the iso8859-1 encoding, decide which byte values are undesirable in the situation's context, and then construct some byte ranges using tr and octal escape sequences.

See if you have the iconv utility program installed.