1 2 3 4
syswrite STDOUT, "€"; # ok use utf8; syswrite STDOUT, "€"; # fatal Error
QuoteAlternately, if the handle is not marked with an encoding but you attempt to write characters with code points over 255, raises an exception.