I'm trying to UTF-8 encode text that may or may not have mixed symbols and/or html entities.
code:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<capture>
£ - £ - pound (160 - 191)<br />
Ñ - Ñ - N tilde (192 - 223)<br />
ñ - ñ - n tilde (224 - 255)<br />
- € - <b>euro</b> (8200+)<br />
</capture>
<$text=$ret>
<strfmt "%hV" $text>
<send $ret>
output:
£ - £ - pound (  - 191)
Ñ - Ñ - N tilde (À - 223)
ñ - ñ - n tilde (à - 255)
€ - - euro ( +)
html entities are encoded properly but the symbol representations are not...
symbols for  -¿ - have extra-characters preceding them
symbols for À and up - encoded to unrecognizable character
What is the correct way to utf-8 encode text with mixed symbols and html entities?
code:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<capture>
£ - £ - pound (160 - 191)<br />
Ñ - Ñ - N tilde (192 - 223)<br />
ñ - ñ - n tilde (224 - 255)<br />
- € - <b>euro</b> (8200+)<br />
</capture>
<$text=$ret>
<strfmt "%hV" $text>
<send $ret>
output:
£ - £ - pound (  - 191)
Ñ - Ñ - N tilde (À - 223)
ñ - ñ - n tilde (à - 255)
€ - - euro ( +)
html entities are encoded properly but the symbol representations are not...
symbols for  -¿ - have extra-characters preceding them
symbols for À and up - encoded to unrecognizable character
What is the correct way to utf-8 encode text with mixed symbols and html entities?