Charge distribution in scattering off nuclei: a test of the production mechanism