I need to write a file with UTF-8 mode in Perl. How do i create that?
Can anyone help in this case?
I'm trying like this, Find my below code,
use utf8;
use open ':encoding(utf8)';
binmode(FH, ":utf32");
open(FH, ">test11.txt");
print FH "something Çirçös";
It's creating a file with UTF-8 Format. But i need to make sure whether that is happening from this script. Because if i'm writing a file without using utf8 encode also, File content is automatically taking as UTF-8 format.