I want to try write Persian character in CSV file in PHP, I am using fputcsv
function but how can write UTF-8 character to CSV file with fputcsv
?
Part of my code:
$df = fopen($filepath, 'w');
fputcsv($df, array($coupon->code, $discount->label));
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…