Hi all, the question is plain simple, I've been trying to fix this for a while but... Please help me.
I am using UTF-8 encoded .pl files, I have
use strict;
use utf8;
use encoding 'utf8';
On top of all my .pl files, now somewhere I do:
print "title = ", ${$lot}{title}, " = ${$lot}{title} \n"; Which prints:
title = Attribué à Jacob de HEUSCH = Attribu� � Jacob de HEUSCH
This output is screenshot in the attached PNG.
I could solve this by always printing variables directly, but this also happens when I use those variables with DBI, and these values get truncated when saved in my database. I am calling SET NAMES utf8 when creating the DB connection.
Any solution? Thanks in advance,
Al3ss
binmode STDOUT, ':utf8';
print "title = ", ${$lot}{title}, " = ${$lot}{title} \n";