The influence of the surface charge distribution on the interaction between nanosized particles in water is reported. The distribution of charges at the surface of initially neutral microemulsion droplets has been modulated by additions of various oligomeric cationic surfactants. The osmotic compressibility of the doped microemulsions was measured by light and small-angle neutrons scattering and reveals that the overall effective interaction induced by the ionic groups is repulsive. However, particular charge distributions decrease the osmotic compressibility much less than others. Independent measurements of the activity of the bromide counterions with specific electrodes evidence a significant decrease in the effective charge, which, however, cannot account for the osmotic compressibility in the framework of the primitive model. The q dependence of the structure factor reveals an attractive contribution over a short distance. Numerical studies assign this attractive contribution to the overlap of hydration shells that are extended as a result of the charge localization.