I use glob function to list files in a directory.
I also got a list of file in an array contening some file name in utf8 encoding.
I want to find files who are in both list.
But when there are some accents characters (é,à,ù...) the equality doesn't work even if they are similar. I think it's because of both scalars encoding difference.
That's why I would like to find the encoding of the scalar returning by the glob function which i think depend on the system where perl is running on. In order to encode that scalar to utf8 and compare them.