Let $\Omega$ be a nice open, bounded domain in $\mathbb{R}^n$. (e.g suppose $\bar \Omega$ is a smooth manifold with boundary).
Let $f_n \in W^{1,p}(\Omega),p>n$ and suppose that:
$f_n \rightharpoonup f$ in $W^{1,p}(\Omega)$.
$f_n $ converges uniformly to a function $g$. (Since $p>n$ the $f_n$ are continuous, so this is well-defined).
How can I conclude $f=g$ almost everywhere?
Since $\Omega$ is bounded and $f_n$ converges uniformly to $g$, we have $$ \lim_{n\to\infty}\int_\Omega f_n\,\phi=\int_\Omega g\,\phi $$ for all test functions $\phi$. Thus, $f_n$ converges weekly to $g$. Since weak limits are unique, $f=g$.