Last active
December 14, 2015 23:59
-
-
Save gerrich/5169404 to your computer and use it in GitHub Desktop.
Use vim as lister for something not in system encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ locale | |
LANG=en_US.UTF-8 | |
$ cat file_in_cp1251 | vim --cmd ':set enc=cp1251' --cmd ':set tenc=utf8' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment