Skip to content
Snippets Groups Projects
Commit efcec72b authored by Christopher Smith's avatar Christopher Smith
Browse files

convert from iso-8859-1 if not utf8

parent c4d11518
No related branches found
No related tags found
No related merge requests found
......@@ -759,6 +759,9 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
$fd = fopen($_FILES['import']['tmp_name'],'r');
if ($fd) {
while($csv = fgets($fd)){
if (!utf8_check($csv)) {
$csv = utf8_encode($csv);
}
$raw = str_getcsv($csv);
$error = ''; // clean out any errors from the previous line
// data checks...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment