My file format isn't exactly like what I gave earlier, but I don't think the difference is significant in this case. I'm doing some tag reductions and reformatting to prepare it for DB insertion, and there was no sense in posting all of the bloat here.
I'd tried something before that had given me the results to be obtained by your line:
$asText =~ s!\\x(..)!chr(hex($1))!ge;However, using that in conjunction with the subsequent "decode" process did the trick! I guess it required that specific TWO-STEP conversion process, and all of my attempts had stopped at one--at least within my code's conversion, not counting setting the file encodings on reading and writing. I'm no stranger to encoding issues, but hadn't worked with these slash-x octets before (I don't even know what they're supposed to be called), and these really threw me for a loop.
So, THANK YOU so much!
Blessings,
~Polyglot~
In reply to Re^4: Perl's encoding versus UTF8 octets
by Polyglot
in thread Perl's encoding versus UTF8 octets
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |