remove usage of iconv

This commit is contained in:
Pig Fang 2021-01-30 17:31:43 +08:00
parent eae6ff887c
commit 6f97c1efcc
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -52,7 +52,7 @@ class SetupController extends Controller
try { try {
$manager->connection('temp')->getPdo(); $manager->connection('temp')->getPdo();
} catch (\Exception $e) { } catch (\Exception $e) {
$msg = iconv('gbk', 'utf-8', $e->getMessage()); $msg = $e->getMessage();
$type = Arr::get([ $type = Arr::get([
'mysql' => 'MySQL/MariaDB', 'mysql' => 'MySQL/MariaDB',
'sqlite' => 'SQLite', 'sqlite' => 'SQLite',