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').
In reply to Re^3: Oddities in UTF-8 and DBD::Pg?
by Anonymous Monk
in thread Oddities in UTF-8 and DBD::Pg?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |