In the following code example, the document characterset is Thai. The name for the characterset used is "TIS-620". The characterset name is put in the XML Declaration (first line), and in a meta element that is a child of head.
<?xml version="1.0" encoding="TIS-620"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
...
<meta
http-equiv="Content-type"
content="text/html; charset=TIS-620"/>
...
</head>
<body>
...
</body>
</html>