how to remove trailing blanks, tabs

Hi
I need to delete trailing spaces, tabs and unprintable charactes from the file.
This file has a number of blank lines which should be left intact. Another words I am trying to remove the junk at the end of each line. Does anyone come across the similar problem? Thanks a lot for any help -A

The problem is to have at least a list of valid separators from which one can write a filter to cut off the garbage. Without examples, there will be no useful code.

try this

awk '{gsub(/^ +| +$|[[:cntrl:]]/,"" )}1' file

Thanks