ZSH terminal displaying characters and cursor in the wrong place When my command is long and I move the cursor through it, it jumps randomly to different places and start writing in any location of the command. 

I'm using OS X El Capitan (10.11.6) and have installed oh my zsh. I've also tested an alternative terminal (iTerm) and the same is happening.
I've just added 

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8


to the file

~/.zshrc


and solved the issue