Answer the question
In order to leave comments, you need to log in
How to bulk edit HTML files if there are problems with file encoding?
The files are natively in ANSI (win1251). I tried to convert to UTF-8, but then the drop-down boxes of the top menu contain question marks instead of Russian letters.
If you try to massively search for some Russian word in files without recoding, it doesn't find anything. In Atom, I tried to change the encoding in the display settings - to no avail.
At the same time, in any programs (Atom, AkelPad, SublimeText, notepad, notepad), files open and display normally. When it comes to editing, nothing happens.
Can anyone come across and tell me what are the options for mass code replacement without the described problems?
I didn't forget to change charset="utf-8" after conversion)
Perhaps the problem is how the drop-down windows are implemented - until I google in any way. Why can they remain with question marks when everything else has been successfully converted to utf-8 and replaced by charset?
Answer the question
In order to leave comments, you need to log in
And if you write a small script in python? You open the file, recode from cp1251 to utf-8 and save the results. Or has it already been done?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question