imfaus has asked for the wisdom of the Perl Monks concerning the following question:

Thanks for the suggestion I modified my script however when I run it, its still not displaying the proper copyright symbol see below
perl copyright.pl Copyright © 2014
#!/usr/bin/perl # Define modules use strict; use warnings; use utf8; use Encode; binmode(STDOUT, ':utf8'); print "Copyright © 2014\n";

Replies are listed 'Best First'.
Re: can't print copyright symbol
by trizen (Hermit) on Dec 12, 2014 at 17:47 UTC
    You need to specify an appropriate encoding type on your STDOUT. See binmode.
    use utf8; binmode(STDOUT, ':utf8'); print "Copyright © 2014\n";
Re: can't print copyright symbol
by ww (Archbishop) on Dec 12, 2014 at 22:44 UTC

    It appears that the content shown at 0030UT 13 Dec is NOT what you originally posted, rendering the kindly Monk's reply as a 'huh? Why'd he say that?' IOW, you've destroyed the context for future readers. You may wish to consult the FAQs for guidance on the Monastery's norms.

    Please, when you update, make a prominent notation, and use <strike>...</strike to eliminate elements which you wish to retract/disavow or such-like.