D
D
DRON_161Rus2021-02-02 16:49:21
HTML
DRON_161Rus, 2021-02-02 16:49:21

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

3 answer(s)
0
0nkery, 2021-02-03
@0nkery

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?

E
emp1re, 2017-08-01
@emp1re

done();
results.push(row);

And what do you send in done and why does it cost without a condition?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question