J
J
Joss Nix2019-09-12 14:52:18
Notepad++
Joss Nix, 2019-09-12 14:52:18

Why does the encoding break?

Good afternoon.
1) I open a file (notepad ++) encoding win-1251, write the text there, save it, close the file.
2) I open the file - Macintosh encoding. (And you need win-1251)
As far as I understand, there are characters in the text that lead to this behavior.
How to calculate them?
Text example:

{
    "in": ["param1"],
    "in_out": ["param2"],
    "out": ["param3"],
    "inDescr": "--   Установить $x$ в $y$;",
    "outDescr": "--   Значение $x$ установлено в $y$;",
    "outDescr2": "--   Значение $x$ не изменилось;",
    "outDescr3": "--   Значение $x$ установлено в $y$ с погрешностью $z$;",
    "inArr": "--   Установить $x$ следующим образом: $y$;",
    "outArr": "--   Значения $x$ установлены следующим образом: $y$;",
    "outArr2": "--   Значения $x$ не изменились;",
    "inStub": "--   Функция $x$ возвращает значение $y$;",
    "outStub": "--   Функция $x$ не вызывалась;",
    "outStub2": "--   Функция $x$ вызывалась $y$ раз с параметрами ($z$"
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2019-09-12
@Moskus

You are misinterpreting the situation.
Nothing happens to the file encoding, it's just that Notepad++ erroneously automatically recognizes it when it is reopened. Just change it. In your file, the encoding is not specified anywhere, so he guesses (incorrectly).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question