@marcoarment in addition to the grounding issues others have mentioned, the charger may not be happy with the sine-wave output of the AC outlet. I have had standalone inverters in the past that my laptop charger refused to work with because of this.