Let $G$ be an additive compact topological abelian group group and fix a Haar measure $\mu$ on it. Moreover let $\psi\in \hat G$ a nontrivial character, this means that $\psi:G\to S^1\subset \mathbb C^\ast$ is a continuous homomorphism.
Why do we have that $$\int_G \psi d\mu=0\;?$$
Can you give at least a hint for the proof?
Use the translation invariance after a change of variables. Let $h\in G$ so that $\psi(h^{-1})\ne 1$ (which exists by non-triviality)
so the integral must be zero.