in reply to Re^2: Oddities in UTF-8 and DBD::Pg?
in thread Oddities in UTF-8 and DBD::Pg?

I don't understand why I get the question marks in the variable test, but my problem seems to be fixed.
The output of backticks should also be decoded before comparing with unicode strings. I think use open qw( :encoding(utf-8) :std ); does that, and also switches stdout to utf-8 mode (stdout being in binary mode is probably what causes 'question marks').