# my example may be any string from a database /user input etc.
my $example = "just a string that i nééd to be utf8 encoded, but can't see it in the chars, so guess::encode won't work";
Encode::_utf8_on($example);
# ...
use open ':utf8';
use open ':std';
#...
my $cgi = new CGI;
print $cgi->header(
-type => 'text/html',
-expires => '-1d',
-cookie => [$cookie],
-charset => 'UTF-8',
)
print $example;
####
just a string that i nééd to be utf8 encoded, but can't see it in the chars, so guess::encode won't work
##
##
just a string that i nééd to be utf8 encoded, but can't see it in the chars, so guess::encode won't work