Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
Expand Down Expand Up @@ -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',
```


Expand Down
2 changes: 1 addition & 1 deletion src/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}

Expand Down