Not using Unicode won't help you. (Also, there is not such thing as non-Unicode characters, but you probably need code point subset, something like ASCII, also may be not exactly what you need.) Decide what exactly You can filter out some characters.
Here is one code sample:
<html>
<head>
<script type="text/javascript"><!--
function filterDigits(eventInstance) {
eventInstance = eventInstance || window.event;
key = eventInstance.keyCode || eventInstance.which;
if ((47 < key) && (key < 58) || key = 45 || key == 8) {
return true;
} else {
if (eventInstance.preventDefault)
eventInstance.preventDefault();
eventInstance.returnValue = false;
return false;
}
}
--></script>
</head>
<body">
<input type="text" onkeypress="filterDigits(event)"/>
</body>
</html>
Pay attention: you also need to allow key code 8 (backspace).
—SA