Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Update Uploader.class.php
Browse files Browse the repository at this point in the history
iconv函数无法将unicode转换为utf-8(会有警告),更换为mb_convert_encoding函数
  • Loading branch information
tangtanglove committed Jun 20, 2016
1 parent 70d1c64 commit 689030e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/Uploader.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct($fileField, $config, $type = "upload")
$this->upFile();
}

$this->stateMap['ERROR_TYPE_NOT_ALLOWED'] = iconv('unicode', 'utf-8', $this->stateMap['ERROR_TYPE_NOT_ALLOWED']);
$this->stateMap['ERROR_TYPE_NOT_ALLOWED'] = mb_convert_encoding($this->stateMap['ERROR_TYPE_NOT_ALLOWED'], 'utf-8', 'auto');
}

/**
Expand Down

0 comments on commit 689030e

Please sign in to comment.