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.
How to create an array from a CSV file using PHP
How to pass an array within a query string?
Insert new item in array on any position in PHP
How to check whether an array is empty using PHP?
Converting an integer to a string in PHP
How can I add elements to an empty array in PHP?
How to find the foreach index?
How can I capture the result of var_dump to a string?