tag meta, indicating encoding , used in the document must be inside the head element as close as possible to the top.This formulation of the organization W3C (The World Wide Web Consortium), which is engaged in the development and implementation of technology standards for the Internet.Sam this tag in the HTML-document might look like this: & lt; meta http-equiv = "Content-type" content = "text / html; charset = UTF-8" & gt; This directive should be used in pages written standardHTML 4.01 and XHTML 1.x.For the final document XHTML-bracket "& gt;"should be replaced by "/ & gt;".In this sample, after
a specified charset = Unicode UTF-8 encoding.Of course, you need to replace the UTF-8 on its meaning - the one in which this document has been stored, or where the content is retrieved from the database.For the Russian alphabet, except for utf-8, it may be of value windows-1251 (the most common), koi8-r, koi8-u, iso-ir-111, iso-8859-5, x-cp866, ibm855, x-mac-cyrillic.
To specify the encoding in web page - Edit the desired document.Find out what the syntax corresponds to the code of the page - it is stated in the beginning, in the tag & lt;! DOCTYPE ... Depending on the use of standards (HTML or XHTML), prepare the tag code based on the above data.Then, locate the source code of the page tag & lt; / title & gt;- Usually an indication encodings placed immediately after it.If this tag is for some reason not in the code of your document, find the tag opens the header of the HTML - & lt; head & gt ;.Insert the prepared code after him and save the document.
If pages using external files and CSS-style in these files there are elements that use characters from national alphabets, then they should also specify the encoding used .The first line of the file, add styles:charset "windows-1251"; windows-1251 to replace your desired znachenie.Krome addition, it is possible to specify the encoding , that the browser should use when linking.For this purpose it is necessary to place the link tag charset attribute to the desired value.For example: & lt; a href = "" charset = "windows-1251" & gt; Just How! & Lt; / a & gt;