Transmission electron microscopy associated with electron energy loss spectroscopy imaging was used to determine structural spatial variations and compositional variation in heavily doped (0.006 OMEGA cm) and lightly doped (0.4 OMEGA cm) luminescent porous silicon films.