0

Im using the below function to save csv file datas into database:

$name = addslashes(nl2br(iconv("UTF-8", "UTF-8//IGNORE", trim($data[0]))));

But it showing me the error like below

A PHP Error was encountered

Severity: Notice

Message: iconv(): Detected an incomplete multibyte character in input string

Anybody please help me to solve this issue.

When i var_dump the data[0] then the result was

string(14) "Thierry Grange" string(11) "Sergio Zini" string(17) "Sophie Desormiere" string(22) "Jacques-Benoit LE BRIS" string(11) "Roger Owens" string(17) "Jacques GUGLIELMI" string(16) "Josimar Fazolare" string(11) "Ziad Haddad" string(7) "Pu Chen" string(15) "Marco Giannuzzi" string(18) "Shilei "Bill" Chen" string(17) "Sebastien Piffard" string(14) "Wilfried Debus" string(14) "Nicolas Renaud" string(17) "Martin De Saignes" string(21) "Celine Van Vlaenderen" string(16) "Rodolfo Patricio" string(19) "Pedro Correia Pinto" string(15) "Werner Cooreman" string(17) "Martin Laudenbach"

VinoCoder
  • 1,133
  • 5
  • 22
  • 45

0 Answers0