Generalization of de Bruijn's extension of P61ya's theorem to all characters