From 315f14b8a7c4efcf318313c72bdf9f12b520edb6 Mon Sep 17 00:00:00 2001 From: andrehanke Date: Tue, 28 Oct 2025 09:59:15 -0300 Subject: [PATCH] fix: typo in database charset property --- README.md | 8 ++++---- src/Database/Connection.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d089582..7d496a1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Add the following in the require section of your **composer.json**: -### Laravel >=7.x +### Laravel 8, 9, 10 ```json "uepg/laravel-sybase": "~4.0" ``` @@ -107,9 +107,9 @@ This package offers to method to charset conversion, it can be converted in appl To use the database layer conversion add the property charset to connection configuration on the sybase configuration array ```charset - 'charset' => 'utf8', - 'application_encoding' => false, - 'application_charset' => '', + 'database_charset' => 'CP850', + 'application_encoding' => true, + 'application_charset' => 'UTF8', ``` diff --git a/src/Database/Connection.php b/src/Database/Connection.php index 94c1e52..4c6fb3e 100644 --- a/src/Database/Connection.php +++ b/src/Database/Connection.php @@ -83,7 +83,7 @@ public function configureExtraSettings($config = []) throw new \Exception('When application encoding is configured, you need to set up application_charset and database_charset'); } $this->applicationCharset = $config['application_charset']; - $this->databaseCharset = $config['charset']; + $this->databaseCharset = $config['database_charset']; } }