I read an XLSX with simpleXlsx parser plugin.
my first line of excel is the header and i need to read it.
In my excel i have for example 3 columns with the name of the header on first row:
Columns_1 Columns_with_accent_à Columns_3
Second col has an a accented: à
My editor is in UTF-8 mode, my php page has encoding UTF-8 set, i don't use any html on my page (is it a page import only in php) but I get this var dump:
<?php
header('Content-type: text/html; charset=UTF-8');
$xlsx = SimpleXLSX::parse("file.xlsx");
foreach( $xlsx->rows() as $indexrow => $r ) {
if ( $indexrow == 0 ) {
// HEADER
var_dump(strtolower($r[1])); //second column
//output WRONG: Columns_with_accent_�
}
}
?>
Any idea strtolower broke my string? without it, it work great