Change encoding on a per file or per extension basis

后端 未结 3 374
不思量自难忘°
不思量自难忘° 2020-12-17 10:43

I\'m using Microsoft Visual Studio Express 2012 for Web. It seems that every file which I open with it gets encoded into UTF-8. For most files which are going to be web-fa

3条回答
  •  甜味超标
    2020-12-17 11:15

    I had code conversion problems width VS studio 2012 as well. Namely, I had non ansi compliant characters in strings ind my .js files and unreadable was outputted to the browsers html page. I figured out that accept script files (like .js) VS 2012 creates all files in UTF-8. *The problem is with the suggestion bellow to change the defaults in the options dialog resulted in that the syntax highlighting and intelisense stopped working in all .js files.* So my workaround solution know is that I convert my .js files with notepad++ to utf-8 without BOM. In this way my "unusual" chars are appearing well in browsers and the intelisense is working fine as well.

提交回复
热议问题