Skip to content

Commit 315f14b

Browse files
committed
fix: typo in database charset property
1 parent f6958f1 commit 315f14b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
Add the following in the require section of your **composer.json**:
1616

17-
### Laravel >=7.x
17+
### Laravel 8, 9, 10
1818
```json
1919
"uepg/laravel-sybase": "~4.0"
2020
```
@@ -107,9 +107,9 @@ This package offers to method to charset conversion, it can be converted in appl
107107
To use the database layer conversion add the property charset to connection configuration on the sybase configuration array
108108
109109
```charset
110-
'charset' => 'utf8',
111-
'application_encoding' => false,
112-
'application_charset' => '',
110+
'database_charset' => 'CP850',
111+
'application_encoding' => true,
112+
'application_charset' => 'UTF8',
113113
```
114114

115115

src/Database/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function configureExtraSettings($config = [])
8383
throw new \Exception('When application encoding is configured, you need to set up application_charset and database_charset');
8484
}
8585
$this->applicationCharset = $config['application_charset'];
86-
$this->databaseCharset = $config['charset'];
86+
$this->databaseCharset = $config['database_charset'];
8787
}
8888
}
8989

0 commit comments

Comments
 (0)