简体   繁体   中英

Chrome saying that manifest.json is not in utf8

I'm sure that it is I tried with/without BOM and I still get this error : UT8 Chrome扩展程序错误

{
  "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
    }
  ]
}

我使用一个程序将我的所有文件批量转换为UTF-8格式 ,现在可以正常工作了,正如方觉所说,问题出在清单以外的另一个文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM