DW8 and VS2003 's garbled problem solution _ Application Technique

Source: Internet
Author: User
Specifically, it should be the UTF-8 compatibility problem with Dreamweaver and VS2003.
Problem description
I'm used to writing HTML in the Code view of DW, and C # is naturally more comfortable to write in vs.
DW I set to xhtml1.0 Utf-8, VS2003 also save for Utf-8, can open DW files or copy DW code come in is garbled, baffled, are UTF-8 ah, why will garbled, And even more strange is the use of IE to browse the garbled Web page can also be identified is UTF-8 encoding.
The problem can only focus on the UTF-8 encoding itself, which takes note of some of the Utf-8 options, query the next signed BOM information
On Nablus Wolf's blog http://www.cnbruce.com/blog/showlog.asp?log_id=1000&cat_id=27 quote content

If you select Unicode (UTF-8) as the default encoding, you can select the include Unicode signature (BOM) option to include a byte order mark (BOM) in the document.
A BOM is 2 to 4 bytes at the beginning of a text file, identifies the file as Unicode, and also identifies the byte order of the following bytes. Because UTF-8 does not have byte order, you can choose to add UTF-8 BOM. This is required for UTF-16 and UTF-32.

OK, select with signature on DW and VS, save OK
Also found the following information, although no problem now, but still set, is to choose the C standard UTF-8.

Reference content

If you select Unicode (UTF-8) as your default encoding, select a Unicode standardized form.

There are four types of Unicode standardized forms. The most important thing is to standardize form C because it is the most common form used for the character model of the World Wide Web. Macromedia provides three other Unicode standardized forms as supplements.

In Unicode, some characters look similar, but can be stored in a document in different ways. For example, "" (e-tonal) can be expressed as a single character "E-diacritics", or two characters "normal Latin e" + "combination of notes". A Unicode combination character is a character that is used in conjunction with the previous character, so the diacritics appear above "Latin e". Both of these forms are displayed as the same printing style, but each form stored in the file is different.

Standardization is the process of ensuring that all characters that can be saved in different forms are saved in the same form. That is, all "" characters in a document are saved as a single "e-note" or "E" + "combination of notes," instead of being saved in one document in both of these forms.

For more information about Unicode standardization and specific forms that you can use, see the Unicode Web site, which is http://www.unicode.org/reports/tr15.

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.