// read the file
$data = \File::read($file['file'], true);
// convert it to UTF-8 if it's a windows upload
if (mb_detect_encoding($data, 'ISO-8859-1, UTF-8') == 'ISO-8859-1')
{
$data = mb_convert_encoding($data, 'UTF-8', 'ISO-8859-1');
}
It looks like you're new here. If you want to get involved, click one of these buttons!