F
F
fidlerdev2020-04-04 13:09:01
macOS
fidlerdev, 2020-04-04 13:09:01

After installing oh-my-zsh Cyrillic is not recognized?

Installed on macOS oh-my-zsh, everything works fine, only Cyrillic is printed as
5e885c9fb0820996601836.png
How can I fix the problem? Google didn't help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2020-04-08
@fidlerdev

First. Check the encoding in pure bash: type /bin/bash in a terminal and check the encoding.
Second. In the terminal settings, select a monospace font that supports Cyrillic Russian - PT Mono, for example, and check if your problems will disappear on this.
5e8e20c484143239120607.png
Third. If the second did not help, then in the user's home directory, in the .zshrc file,
uncomment the line
# export LANG=en_US.UTF-8 and set the encoding that you need, most likely you need LANG=ru_RU.UTF-8 and again, a font that supports Cyrillic is required.
Fourth. If all else fails, then try deleting the terminal settings file
~/Library/Preferences/com.apple.Terminal.plist and setting everything up again.

I
Ilya Vishnikin, 2020-04-05
@IlyaVishnikin

Enter command locale. Make the languages ​​be en_US.UTF-8 or ru_RU.UTF-8. How exactly depends on your terminal. To do this, in a file /etc/locale.geb(I'm xs for a poppy, but in ubunt such a file). There, remove the hash sign ( "#" ) above the locale you need. That is, before en_US.UTF-8 or ru_RU.UTF-8.
UPD . Or I think this code will help too. But since I have ubuntu, probably some commands will not work, so it's better to check the change of locale in Googlesudo locale-gen "ru_RU.UTF-8"export LANG=ru_RU.UTF-8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question