H
H
HaruAtari2013-12-29 20:38:52
PostgreSQL
HaruAtari, 2013-12-29 20:38:52

Displaying postgres query results in vim. Why is Cyrillic incorrectly displayed?

Good evening.
When fetching data from the postgres database, with a small number of records, the output goes directly to the terminal. In this case, the Cyrillic alphabet is displayed correctly.
But if there are a lot of entries, then the results are opened in vim and Cyrillic is displayed as <8B>
Tell me how to configure vim so that it normally displays Cyrillic? Didn't find anything useful on google.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2014-12-30
@jcmvbkbc

Probably encoding is set incorrectly. Try typing in vim opened with bad cyrillic
:e ++enc=encoding_name
where encoding_name is the Wim encoding name of your Russian (eg cp1251).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question