It looks like you're new here. If you want to get involved, click one of these buttons!
if ( ! function_exists('replcSpecChar')) { function replcSpecChar($string){ $string = str_replace("æ", "æ", $string); $string = str_replace("ø", "ø", $string); $string = str_replace("å", "å", $string); $string = str_replace("Æ", "Æ", $string); $string = str_replace("Ø", "Ø", $string); $string = str_replace("Å", "Å", $string); return $string; } }
public function upload_csv()
case 'customer':
name_company
'name_company' => replcSpecChar($value['name_company']),
Comments
Thanks for posting here. I will try to reproduce the issue. Stay tuned
Open application>helpers>mm_standalone_helper.php and paste this code à the end of the file
if ( ! function_exists('replcSpecChar')) { function replcSpecChar($string){ $string = str_replace("æ", "æ", $string); $string = str_replace("ø", "ø", $string); $string = str_replace("å", "å", $string); $string = str_replace("Æ", "Æ", $string); $string = str_replace("Ø", "Ø", $string); $string = str_replace("Å", "Å", $string); return $string; } }
Then open application>modules>upload>controllers>Upload.php and locate
public function upload_csv()
and go tocase 'customer':
and editname_company
to look like this'name_company' => replcSpecChar($value['name_company']),
Then try again and let me know.
Thanks
Eric
But I left it and edited the 83 clients in the database instead. Didn't take too long...
So, "bug" still there for us who wants to import clients with nordic letters.
Thanks