Weak convergence of the empirical characteristic function