I got a project with a bunch of comments in Russian and in different encodings (windiws-1251, koi8-r, utf-8). Of course, netbeans supports all of these encodings, to constantly switch them in the properties of the project is very dreary. Can someone suggest an adequate way to bring the encoding comments to one type?

    1 answer 1

    The algorithm is as follows; all files are read line by line and determined for each line encoding and reduced if necessary to the necessary one.

    References:

    habrahabr

    dklab

    • Articles really helped to get to the core of the problem. It is a pity that there is no ready-made solution. Lang will go do. - zenith