Usually themes in zsh works out of the box with oh my zsh framework. But sometimes we use KDE and Konsole we get some weird error of zsh character not in range like errors.
zsh (anon):12: character not in range
How to solve this problem. For that first we want to identify what causes this problem. The problem is with reading unicode character in the shell especially zsh. We want to check the locale settings first. for that type locale on the terminal
[email protected] ~ locale
If you get an output like this then it may be correct. Then the next problem causing a character not in range is with the setting of the locales.
Enable the desired locales in /etc/locale.gen and run
$ cat /etc/locale.gen |grep UTF
$ en_US.UTF-8 UTF-8 en_GB.UTF-8 UTF
Then run the locale-gen command to generate the preffered locales. This will fix the problem.
Also the localectrl can also fix the problem
localectl set-locale LANG=en_AU.UTF-8
If the locales are loaded correctly you will get
$ locale -a
Image credit: Commons.wikimedia.org