Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
$first_name = preg_replace('/[^- \'\+\_\.0-9a-zA-Z]/','',$first_name);
$first_name = preg_replace('/\+/',' ',$first_name);
mysqli_query($conn,"SET NAMES 'utf8'");
$link->set_charset("utf8");
if ($non_latin < 1)
{
...
$first_name = preg_replace('/[^- \'\+\_\.0-9a-zA-Z]/','',$first_name);
$first_name = preg_replace('/\+/',' ',$first_name);
...
}
use Spreadsheet::Read;
use Spreadsheet::XLSX;
use File::Basename;
---IMPORTANT LINE-----> use open ':std', ':encoding(UTF-8)';
Users browsing this forum: No registered users and 69 guests