I also had the problem earlier. I ran dpkg-reconfigure locales as root and configured the locale as english and it started working permanently after that.