If the plug of the charger contains three terminals, it may be incorrectly wired, by swapping ground and neutral. This is a dangerous configuration to use that also may or may not work, depending on what the installation does with the ground wire. Ground and neutral wires [should not actually be connected][1] right at the socket or nearby, but they are [often connected][2] at the final step-down transformer of the supply. Some particular socket may not have ground connected at all so this explains why the wrongly wired plug works on some sockets and not others. It may be the case if the plug has been manually replaced, cutting away a plug from one country and screwing on a different plug for another. [1]: https://www.circuitsgallery.com/what-happens-if-you-connect-neutral-to-ground/ [2]: https://en.wikipedia.org/wiki/Ground_and_neutral