Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

Неверное определение кодировки при наличии в исходниках кириллических символов #16

Description

@grudolobichdeleted

В файле src\tools\build\adjust-encoding.js
имеется определение кодировки
`
export function getEncoding(buffer)
{
const result = jscharder.detect(buffer);

if (!result || result.encoding === 'UTF-8')
{
return 'utf-8';
}
return 'windows-1251';

}
`
Которое приводит к сохранению в кодировке windows 1251, при наличии кириллических символов в исходниках

Минимальный фикс этой проблемы оформлен в PR: #15

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions