From eae7a8ab86f404b20ec425531fbcda5339d94df1 Mon Sep 17 00:00:00 2001 From: J Skoba Date: Tue, 3 Sep 2019 03:45:18 -0400 Subject: [PATCH] KickstartForm: add 'UTF-8' to array of allowed charsets, to support Postgres --- application/forms/KickstartForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/KickstartForm.php b/application/forms/KickstartForm.php index 7fe8db52..6fc14307 100644 --- a/application/forms/KickstartForm.php +++ b/application/forms/KickstartForm.php @@ -197,7 +197,7 @@ class KickstartForm extends DirectorForm if ($resourceName = $this->getResourceName()) { $resourceConfig = ResourceFactory::getResourceConfig($resourceName); if (! isset($resourceConfig->charset) - || ! in_array($resourceConfig->charset, array('utf8', 'utf8mb4')) + || ! in_array($resourceConfig->charset, array('utf8', 'utf8mb4', 'UTF-8')) ) { if ($resource = $this->getElement('resource')) { $resource->addError('Please change the encoding for the director database to utf8');