One, to view the CSS file encoding 1, high-version DW new will be encoded charset code in the CSS file does not have the code declaration code does not mean that the CSS file does not encode this feature, in the higher version of the DW software, the new CSS file will automatically add the code of the Declaration. @charset "Utf-8";/*css DOCUMENT*/2, did not find charset encoding code in the CSS file how to view the encoding type? In the DW software, after opening the CSS file, the DW code in the lower right corner of the status bar can be seen in the current CSS file encoding type/*CSS divcss* Shijiazhuang pump Factory/body{text-align:center} two, How to convert the CSS file encoding (Interchange method) regardless of whether there is charset in the CSS file code, you can see the encoding type in the lower right corner of the DW software code editing area. But if you want to modify the CSS document encoding can not directly add or modify the value of charset even if the code changes, so direct modification is not possible. Before the change is Utf-8 encoding type, this example changes the Utf-8 conversion to gb2312. First step: Find the DW software top status bar "modify" Select Click "Page Properties" (or shortcut key Ctrl+j) The second step: Select the document encoding type value in the popup Page Properties tab, the document encoding this column expands to select the third step: After choosing the right encoding type, click "OK" to actually " UTF-8 "encoded CSS file converted to" GB2312 "encoded document. After changing the conversion encoding, the CSS file document remains gb2312 encoded even if you manually delete the CSS code in @charset "gb2312". Third, the CSS encoding conversion summary Remember to modify the CSS code file encoding, can not only manually modify the @charset value is considered as the conversion of the code, it is necessary to use the DW software conversion operation to completely truly convert the CSS document encoding type.
CSS encoding settings Chapter UTF-8 and gb2312 Mutual conversion