in reply to PERL UNIX and strangeness and char conversion
This seems essentially the same as both Substitute and converting to UTF8 and convert tags to punctuation. Have a read of those and let us know if and how your question differs.
🦛