Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: replacement for deprecated encoding pragmaby BillKSmith (Monsignor) |
on Jul 19, 2021 at 20:35 UTC ( [id://11135182]=note: print w/replies, xml ) | Need Help?? |
I suspect that you have it backwards. The function refPrint returns a string of html encoded as utf-8. The template expects a normal perl character string. (The function decode decodes the utf-8 into the required perl character string.) I do not understand why, but seems that STDOUT must print the utf-8 characters to the terminal without any further encoding.
If you really can salvage your legacy software this easily, why not do it? Be sure to document the need for it and how you found it.
Bill
In Section
Seekers of Perl Wisdom
|
|