如何在SublimeText2中有效设置项目默认编码?

Chr*_*ski 3 opensuse character-encoding sublimetext2

我有sublime-project文件如下:

{
"default_encoding": "Central European (ISO 8859-2)",
"fallback_encoding": "Central European (ISO 8859-2)",
"folders":
[
    {
        "folder_exclude_patterns":
        [
            "*.Trash*"
        ],
        "follow_symlinks": true,
        "path": "cok_gnb"
    },
    {
        "follow_symlinks": true,
        "path": "Dokumenty"
    }
],
"settings":
{
    "line_padding_bottom": 3,
    "tab_size": 4
}
}
Run Code Online (Sandbox Code Playgroud)

选项:"default_encoding"和"fallback_encoding"没有任何效果 - 当我打开ST2文件已经打开Windows 1252编码.

怎么了?也许有另一个选项迫使ST2使用编码?

当我忘记使用"打开编码"菜单选项并弄乱大文件时有点令人沮丧,有时我必须将其删除并再次从回购中拉出来.

我使用的是OpenSuse 12.3.

igo*_*gor 9

你应该把"default_encoding""fallback_encoding""settings"

{
    "folders":
    [
        {
            "folder_exclude_patterns":
            [
                "*.Trash*"
            ],
            "follow_symlinks": true,
            "path": "cok_gnb"
        },
        {
            "follow_symlinks": true,
            "path": "Dokumenty"
        }
    ],
    "settings":
    {
        "default_encoding": "Central European (ISO 8859-2)",
        "fallback_encoding": "Central European (ISO 8859-2)",
        "line_padding_bottom": 3,
        "tab_size": 4
    }
}
Run Code Online (Sandbox Code Playgroud)