in reply to Re: Encode string to HTML
in thread Encode string to HTML

Thanks hippo

That is very much explaining, so in my case when I want to define unsafe characters I have to use a similar methode.

my $UnsafeChar = 'οι'; print encode_entities(decode ('utf-8', $TestStr), decode ('utf-8', $Un +safeChar)) . "\n";