use Encode; # ... get database text into $text and then: $text = decode( 'utf8', $text );