Set the page and language encoding for a web page

You can change the page encoding and set the language for an individual page. For more information about page encoding, or about how to set the page encoding for an entire site, see Set the default page encoding for a site.

The language encoding declares the primary language of the intended audience of your web page. When you set the language attribute for a web page, Microsoft Expression Web adds a content-language meta tag to the page. The following is an example of a content-language meta tag:

<meta http-equiv="Content-Language" content="fr" />

The fr value defines this document as a file that is intended for an audience whose primary language is French.

To change the page encoding of a web page

  1. On the File menu, click Properties, and then click the Language tab.

  2. In the Page Properties dialog box, under HTML encoding, in the Save the document as box, select the page encoding that you want.

    tip noteTip

    In Design view, you can also right-click the web page and then click Page Properties. In Code view, you can right-click the web page, and then click Encoding.


    If the active page is not displaying correctly, in the Reload the current document as list, click the encoding that you want to load the active page in.

    Caution noteWarning

    If the active page displays incorrectly, the file may become corrupt if you save the page over the original version.

To change the language encoding of a web page

  1. On the File menu, click Properties.

  2. In the Page Properties dialog box, under Language, in the Mark current document as box, select the language that you want.

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions