in reply to replacement for deprecated encoding pragma
How to make it automatic, as it was with the encoding pragma?
uh, use encoding didn't do anything to the result of functions calls.
Anyway, refPrint returns strings encoded UTF-8, which it probably shouldn't. Either fix it, or wrap it. And that's assuming the problem is in refPrint and not the data you pass to it. You haven't told us anything!
Seeking work! You can reach me at firstname.lastname@example.org