$data =~ s/([\x{80}-\x{FFFF}])/'&#' . ord($1) . ';'/gse;
So the registered trademark symbol (®) becomes ®
But now my output needs to be of the form: ®
What would be a similarly simple substitution or other way to make the conversion?
In reply to UTF to character entities by alafarm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |