CSS encoding settings chapter UTF-8 and gb2312 Mutual conversion

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.