A battery charger will normally draw power from a mains supply or generator, and charge a battery or bank of batteries, so too does Photovoltaic (PV) solar panels convert energy from the sun into electricity, which needs to be stored in batteries.
Most electrical appliances and electronic equipment run on 230VAC power, which means in the case of a solar powered system, the power stored in the batteries needs to be converted from 12V/24V or 48V DC to 230VAC.
Many of the available DC to AC power inverters are now used and designed for cost, mobility and various applications and most of them should be of quality and system durability.
You might want a power inverter system that interfaces automatically with a generator and possibly other inputs such as PV Solar Panels & Wind generator.
Download this PDF to ensure you get the right system: Battery and Inverter Basics – Raylite (2)