utf 8 is the w3c recommended encoding for html code example
Example: doctype html charset utf-8
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>