Garbled characters appear in Dreamweaver, generally due to two situations:
First, the text used to create the homepage is not marked. In this case, it can be solved easily, just add a description.
The second is that you have newly installed fonts (such as Wending Cool fonts), so you have to adjust them every time you create a new web page, which is very troublesome. Then you can use the following method to solve it.
Please back up the registry first and exit running Dreamweaver.
1. Run regedit.exe.
2. Find HKEY_CURRENT_USER/SOFTWARE/MACROMEDIA/DREAMWEAVER 4/FONT PREFERENCES.
Next there are 2 solutions:
Simple solution:
double-click Number Encodings and change the value b to c (change 11 to 12 in decimal); exit regedit and enter Dreamweaver. Now You can freely choose the font and text size of PROPOTIOANL, FIXED FONT, CODE INSPECTOR!
The perfect solution:
Why is the simple solution not enough? Because only the above changes can be made, you can only choose Chinese fonts, and in some cases, some English fonts will look better than Chinese fonts (for example, I choose ARIAL fonts in CODE INSPECTOR, which is much better-looking than Song Dynasty, Song Dynasty, etc.). And the Chinese part can also be displayed correctly.
The method is as follows:
Under HKEY_CURRENT_USER/SOFTWARE/MACROMEDIA/DREAMWEAVER 4/FONT PREFERENCES, double-click Number Encodings and change the value b to c (change 11 in decimal to 12); enter CharEncoding_11 and modify the internal value:
note that it is best to only change The following values:
Fixed Name: Font name
Fixed Size: Font size
HTML inspector font: Font name
HTML inspector font size: Font size
Proportional Name: Font name
Proportional Size: Font size
If you are not satisfied, you can also try: Fixed CharSet, Proportional CharSet and Windows Character Set were changed from 86 (134 in decimal, representing Chinese) to 00 (representing English).
For a simple solution, here is a simpler implementation method. Copy the following code, save it as a file with the suffix .reg (note that it must be plain text), and then execute the reg file, and the modification will automatically Complete (please also back up the registry first).
REGEDIT4 [HKEY_CURRENT_USERSoftwareMacromediaDreamweaver 4Font Preferences] "Number Encodings"=dword:0000000c"Default Encoding"=dword:00000005