I have a CSV file to import into the database, I found in many places string has encoded in "Mete y S\303\241cala" this manner.
I want to encode it into the original string i.e. "Mete y Sácala".
Reference: https://mothereff.in/utf-8
I have used below function
iconv(mb_detect_encoding("Mete y S\303\241cala", mb_detect_order(), true), "UTF-8","Mete y S\303\241cala");
this works perfect!
I'm reading a file by ExcelReader and looping the content.
but when I used the actual variable it does not convert it.
// loop
iconv(mb_detect_encoding($rec['title'], mb_detect_order(), true), "UTF-8",$rec['title']);
Not work with the loop variable, It might be the issue with forward slashes.