Answer the question
In order to leave comments, you need to log in
How to fix the problem with cracks when opening text saved on Windows?
I'm tired of having to deal with this problem all the time. When you save text in Windows to a .txt file and then you can't read it under Linux.
I open it in Sublime. Previously, the choice of Cyrillic ISO 8858-5 and UTF-8 encoding helped. And now with one file I have already tried all the encodings - they do not help. What is it, how to fix it and how to avoid it in the future?
It was text from the site saved in .txt
Answer the question
In order to leave comments, you need to log in
https://linux.die.net/man/1/iconv
iconv -f WINDOWS-1251 -t UTF-8 my_text_file.txt > fixed_next_file.txt
another universal thing here.
https://www.artlebedev.ru/tools/decoder/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question