Javascript - Using utf-8 replacements for DOM methods:
sValue = aTemp[idxValue].replace("’", "\u2019");
sValue = sValue.replace("”", "\u201D");
sValue = sValue.replace("“", "\u201C");
oTd.appendChild(document.createTextNode(sValue));
oTd.appendChild(sSrc.replace("'", String.fromCharCode(8217)));
| Character |
Decimal |
Hex |
| ● | 9679 | |
| ■ | 9632 | 25A0 |
| ▲ | 9650 | 25B2 |
| ▼ | 9660 | 25BC |
| — | 8212 | |
| † | 8224 | |
| ‡ | 8225 | |
| § | 167 | |
| … | 8230 | ellipsis |
| * | 42 | asterisk |