my database (MySql) has a utf8_general collation. I am accessing data from database and showing a webpage (developed in Perl), it is showing Swedish characters (ä,å,ö) with a di
You need to set mysql_enable_utf8 on connection:
mysql_enable_utf8
my($dbh) = DBI->connect( 'dbi:mysql:test', 'user', 'password', { mysql_enable_utf8 => 1, } );