When template is applied the site, the system requests encoding defined in the site settings. The LANG_CHARSET constant is binded a value of the site encoding.
Below you can see the example of code used for defining the current site encoding:
<head>
…
<meta http-equiv="Content-Type" content="text/html; charset=<?echo LANG_CHARSET?>">
…
<head>