Default Unicode Encoding
In the most recent versions of Dreamweaver the default encoding has been set to utf-8 (Unicode).
In that case all you have to do is switch keyboards or insert characters as in any other document.
To change the encoding of a legacy page to Unicode:
- In the Dreamweaver menu, go to Modify : Page Properties.
- In the Page Properties window, click the Title/Encoding option on the left.
- Select the appropriate encoding, then click the Reload button.
Type Encoded Text Directly into Dreamweaver
For most scripts, you can type directly into Dreamweaver by switching your
keyboards. Keyboards for any scripts you wish to use must first be installed
and activated. See the Languages section for more details on a specific language.
Note: If switching keyboards does not work, then open the code view and make sure the encoding meta
tag is set correctly.
Accents and Special Characters
You can use accent codes and utilities with Dreamweaver as well. See the Accents page for information on specific tools.
Add and Edit Language Tag
You will probably need access to the HTML code view to accomplish this efficiently.
Add Language Tag to a Document
- Click Split or Code at the upper left of the Dreamweaver document window to access the HTML code.
- Look for the initial <html> tag near the top of the document. This is where you should add the lang="" attribute as well as the xml:lang="" attribute for XHTML. A sample document XHTML tagged for U.S. English (en-US) is shown below.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
- For other languages, a list of ISO-639-2 language tags is available at the Library of Congress.
Note: If both a two-letter
code and a three-letter code are available, use the shorter two letter code.
Add/Edit Language Tag in Code View
Language tags can be added in the HTML code view following the guidelines on the Language Tag page.
Add Language Tag in Tag Editor
You can also highlight a word or phrase and use the tag editor in the Properties window to insert a language tag.
- Open the Properties window from the Window menu.
- In the Design view, highlight a word or phrase.
- Click the Quick Tag Editor icon on the right.
- Enter an appropriate tag (e.g.
i,b,span) and add the
Edit Tag in Design View
- Highlight a piece of text to be tagged.
- At the bottom of the page, select the tag corresponding to the text.
- Right click the tag and select the option for Quick Tag Editor.
- Add or edit the
langattribute as needed.
Change Default Font
If you are using a font which doesn’t include the characters you need, follow the procedure below to change your fonts in Dreamweaver.
Change Default Fonts
- Open Dreamweaver, then under the Edit menu, choose Preferences
(Dreamweaver : Preferences in Mac) to open the Preferences window.
- In the Category menu to the left, select Fonts or Fonts/Encoding.
- In the Font Settings menu to the right, choose an appropriate script (e.g. "Cyrillic"). Be careful not to choose Default Encoding.
Note: Although not all scripts are listed, Dreamweaver can actually import encoded text for other scripts.
- Select an appropriate font which matches that script from the Proportional Font, Fixed and HTML Inspector dropdown menus. Click OK to shut the window.
Note: For the Unicode font, you may want specify a font which covers the target range of characters you are intersted in.
- Open a document which is encoded in a non-English script. The characters should be in that script, even in the HTML Source window.
- For some scripts, you can switch keyboards and type directly in that language.
- Make sure file declares the encoding within the HTML HEAD tag; otherwise the keyboard may not work.The Unicode declaration is given below:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- Avoid specifying specific fonts for a script as some alternative browsers and platforms may not be able to read the page (the encoding should be enough to trigger the font changes). If specific fonts must be specified, then make sure both Window and Macintosh equivalents are specified.
- When opening HTML files exported from a text editor, inspect the code to be sure it does not include vendor-specific tags which may not work on all browsers.
- For languages whose encoding systems are not widely supported by browsers, the text editor and Dreamweaver can still be used to develop the web page, but you will need to take extra steps to provide information on recommended browsers and fonts.