use utf8;
does not enable Unicode output – it enables you to type Unicode in your program. Add this to the program, before your print()
statement:
binmode(STDOUT, ":utf8");
See if that helps. That should make STDOUT
output in UTF-8 instead of ordinary ASCII.
More Related Contents:
- Why does modern Perl avoid UTF-8 by default?
- Use of ‘use utf8;’ gives me ‘Wide character in print’
- How can I treat command-line arguments as UTF-8 in Perl?
- Why do my Perl tests fail with use encoding ‘utf8’?
- How can I guess the encoding of a string in Perl?
- Failing to install MIME::Base64 using cpan [closed]
- Declaring a 2D coordinate in Perl / C / C++ [closed]
- Reference: Why are my “special” Unicode characters encoded weird using json_encode?
- Why can’t Perl find my file that is in ClearCase?
- Python and BeautifulSoup encoding issues [duplicate]
- When should I use the & to call a Perl subroutine?
- How do I replace accented Latin characters in Ruby?
- Light C Unicode Library [closed]
- UTF-8 to Unicode Code Points
- How can I hook into Perl’s print?
- How can I combine hashes in Perl?
- Why does my Perl script exit with 137?
- MySQL C# Text Encoding Problems
- What’s the difference between UTF-8 and UTF-8 with BOM?
- Ruby 1.9: how can I properly upcase & downcase multibyte strings?
- What is the difference between Perl’s ( or, and ) and ( ||, && ) short-circuit operators?
- How do I change, delete, or insert a line in a file, or append to the beginning of a file in Perl?
- How can I install a specific version of a set of Perl modules?
- Obtain a switch/case behaviour in Perl 5
- How do I extract the domain out of an URL?
- Why does $foo->{bar} autovivify but %$foo doesn’t?
- Which framework should I use to write modules? [closed]
- How to read UTF8 encoded file using RandomAccessFile?
- How can I check whether my Perl installation is 32 or 64 bit?
- How to remove strange characters using gsub in R? [duplicate]