To be safe for electronics, the power must be regulated. There are a lot of safeguards and regulators in place for generators, as well as for your phone. It doesn't matter where you get the power if it's regulated. It is very safe to use.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.