Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thanks for your response.
For me, your string returned: xd1 and xd2 are outside the range being checked (x80-x9F), are legal unicode (the cp1252/unicode chart gives the same codes) and encode_entities returned (as you found): Note that, for example, ’ returned x2019 so wouldn't be mucked about by the cp1252 replacement. The comment in the script: is from the H::E doc and had more significance than I first realised. __But__ I too am surprised it appears to work. I wrote quite a bit of code to process utf8 and was almost a bit miffed that it seemed unnecessary! This my first outing in these waters so will be pleased to be corrected if I've got any of this tangled up.
Again, thanks for your comments, update: Extract from the chart:
In reply to Re^2: Fixing suspect characters in HTML
by wfsp
|
|