True the power might not be clean, but nor are all inverters.

Most UPS's i've tried to run off a generator won't work, they shut down with the square wave ac coming into them... they know something isn't right.