in reply to perl writing urf8/utf16 output to cmd screen and html page

um, did you put in the html escape codes, or was that perlmonks? are U+2319... the code-points you want to print?

#!/usr/bin/perl -- use CGI; binmode STDOUT, ':encoding(UTF-8)'; print CGI->header(qw/-charset UTF-8/); print "\N{U+2319}\N{U+2330}\N{U+2335}\N{U+2368}\N{U+2319}\N{U+2350}\N{ +U+2354}";

make sure your console can display unicode(UTF-8), see
perlunitut: Unicode in Perl#I/O flow (the actual 5 minute tutorial)
Re^9: UTF-8 text files with Byte Order Mark
Re: search for chr() fails
Re^5: rename to UTF8 filename
Upside Down Text Revised, Re: How to print utf8 char in Term::Screen::Win32 ?

Replies are listed 'Best First'.
Re^2: perl writing urf8/utf16 output to cmd screen and html page
by msinfo (Sexton) on Aug 27, 2013 at 06:04 UTC
    no that was automatically done by perlmonks, i tried writing utf using language keyboard, but it got changed into character code