Chrome说manifest.json不在utf8中

时间:2013-04-19 17:39:55

标签: json google-chrome google-chrome-extension

我确信这是我尝试使用/没有BOM我仍然会收到此错误: UT8 Chrome Extension error

{
  "manifest_version": 2,

  "default_locale": "en",

  "name":           "__MSG_ext_name__",
  "description":    "__MSG_ext_description__",
  "version":        "1.6.0",

  "icons": {
    "16":  "icon_16.png",
    "48":  "icon_48.png",
    "128": "icon_128.png"
  },

  "browser_action": {
    "default_icon":  "icon_19.png",
    "default_popup": "popup.html"
  },

  "background": {
    "page": "background.html"
  },

  "options_page": "options.html",

  "permissions": [
    "tabs"
  ],

  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "scripts/content.js"
      ],
      "run_at": "document_start",
      "all_frames": true
    }
  ]
}

1 个答案:

答案 0 :(得分:0)

我使用了一个程序to mass convert all my files in UTF-8,现在它正常工作,我认为方觉说,问题来自另一个文件,而不是清单。