A
A
account-12017-03-06 21:38:29
linux
account-1, 2017-03-06 21:38:29

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

2 answer(s)
1
15432, 2017-03-06
@account-1

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/

A
Axian Ltd., 2017-03-06
@AxianLTD

UTF-8 will help you with txt in windows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question