The modelling and the numerical resolution of the electrical charging of aspacecraft in interaction with the Earth magnetosphere is considered. It involves the Vlasov-Poisson system, endowed with non standard boundary conditions. We discuss the pros and cons of several numerical methods for solving this system, using as benchmark a simple 1D model which exhibits the main difficulties of the original models.