romkatv / powerlevel10k

A Zsh theme
MIT License
44.26k stars 2.12k forks source link

Error converting string from to UTF-8 on Prompt #2696

Closed NJJoshi closed 1 month ago

NJJoshi commented 1 month ago

After installation of plugin, I am getting prompt like

"iconv: iconv_open(, -t): Invalid argument Error converting string from to UTF-8"

This is happening on iTem 2 Terminal.

romkatv commented 1 month ago

This isn't a powerlevel10k issue.

Chiroyce1 commented 1 month ago

It's related to iterm2, the general solution is to add a LANG variable to the zshrc

echo 'export LANG=en_US.UTF-8' >> ~/.zshrc

~ https://gitlab.com/gnachman/iterm2/-/issues/11543#note_1921937475

romkatv commented 1 month ago

You could try to Google the error message. Here's one of the first links: https://gitlab.com/gnachman/iterm2/-/issues/11543. I haven't tried it myself.