Node: documentencoding, Previous: documentlanguage, Up: Internationalization



@documentencoding enc: Set Input Encoding

The @documentencoding command declares the input document encoding. Write it on a line by itself, with a valid encoding specification following.

At present, Texinfo supports only three encodings:

US-ASCII
This has no particular effect, but it's included for completeness.
ISO-8859-1

ISO-8859-2
These specify the standard encodings for Western European and Eastern European languages, respectively. A full description of the encodings is beyond our scope here; http://czyborra.com/charsets/iso8859.html is one of many useful references.

Specifying an encoding enc has the following effects:

In Info output, if the option --enable-encoding is also given to makeinfo, a so-called `Local Variables' section (see File Variables) is output including enc. This allows Info readers to set the encoding appropriately:

     Local Variables:
     coding: enc
     End:
     

In HTML output, a <meta> tag is output, in the <head> section of the HTML, that specifies enc. Web servers and browsers cooperate to use this information so the correct encoding is used to display the page.

     <meta http-equiv="Content-Type" content="text/html;
          charset=enc">
     

In all other cases, it is recognized but ignored.