I just saw this and thought I would comment.
It is not necessary to convert those non-basic characters in HTML as you can use unicode (charset=UTF-8) provided that Dreamweaver allows you to. If not, try a European code set such as iso-8859-15 which allows such exotic characters.
On the other hand, if you must insert something into a page which you can not set to such character sets but uses iso-8859-1 then you can do a conversion using javascript.
Here the essence of the function:
asd=asd
.replace(/([^\u0000-\u00A0])/g,function(a){return "&#"+a.charCodeAt(0)+";"}) ;
If you want named entities, then you can extract them from a list such as at <<
http://www.ascii.cl/htmlcodes.htm>>
The nice thing about getting numeric entities is that the conversion is compact.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Convert to entities</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="CSE HTML Validator Professional (
http://www.htmlvalidator.com/)">
<script type="text/javascript"><!--
function trans() {
document.getElementById("bb").value=
document.getElementById("aa").value.replace(/([^\u0000-\u00A0])/g,function(a){return "&#"+a.charCodeAt(0)+";"})
return }
--></script>
</head>
<body>
<p><button onclick='trans()'>Trans</button></p>
<p><textarea id="aa" rows="10" cols="50"></textarea></p>
<p><textarea id="bb" rows="10" cols="50"></textarea></p>
</body>
</html>