S
S
Sergey Torop2015-03-10 17:01:40
linux
Sergey Torop, 2015-03-10 17:01:40

Is it possible to convert files on the fly?

Good afternoon,
there are a large number of text files in koi-8r encoding. There is a linux server with ru_RU.UTF-8 locale. I would like to be able to access files in koi-8r, normally displayed in the server console with utf-8. Is it possible to recode "on the fly", without using command aliases and wrappers? That is, some beautiful solution (creating an image of files, mounting with options comes to mind, but it seems that this is not it). The option to recode all files to koi-8r was considered at once, I would like not to touch the files.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
ShamblerR, 2015-03-10
@ShamblerR

Yes
iconv -f utf8 /tmp/333.txt -t cp1251

E
Eddy_Em, 2015-03-10
@Eddy_Em

If you want to use less, then you can do this:
If you want to open it in mcedit/mcview, then it can select encodings (alt+e).

A
Alexey Cheremisin, 2015-03-10
@leahch

Write the files to an archive on CD / DVD and recode as ShamblerR wrote

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question