From 6f97c1efccaa8e376c23adb424507a8fa1aedd83 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 30 Jan 2021 17:31:43 +0800 Subject: [PATCH] remove usage of `iconv` --- app/Http/Controllers/SetupController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index b31266355..6092fc670 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -52,7 +52,7 @@ public function database( try { $manager->connection('temp')->getPdo(); } catch (\Exception $e) { - $msg = iconv('gbk', 'utf-8', $e->getMessage()); + $msg = $e->getMessage(); $type = Arr::get([ 'mysql' => 'MySQL/MariaDB', 'sqlite' => 'SQLite',