You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,13 @@ Update your **config/database.php's** default driver with the settings for the *
47
47
return [
48
48
...
49
49
50
+
'sybase' =>
51
+
[
52
+
'application_encoding' => false,
53
+
'application_charset' => '',
54
+
'database_charset' => ''
55
+
],
56
+
50
57
'connections' => [
51
58
...
52
59
@@ -97,23 +104,24 @@ The file is usualy found in **/etc/freetds/freetds.conf**. Set the configuration
97
104
tds version = 5.0
98
105
```
99
106
100
-
## Configuring the charset between the database and the application
107
+
## Configuring the charset conversion
101
108
This package offers to method to charset conversion, it can be converted in application layer or in database layer, we offered both methods because it can be useful for debugging, to config the application layer conversion you need to set up the following entries on the `database.php` file. You can view an example of the application encoding setup below:
102
109
103
110
```database
104
111
'sybase' =>
105
112
[
106
113
'application_encoding' => true,
107
114
'application_charset' => '',
108
-
'sybase_database_charset' => ''
115
+
'database_charset' => ''
109
116
],
110
117
```
118
+
To use the database layer conversion add the property charset to connection configuration on the sybase configuration array
111
119
112
120
```charset
113
121
'charset' => 'utf8',
114
122
```
115
123
116
-
To use the database layer conversion add the property charset to connection configuration on `database.php`
124
+
117
125
118
126
## Configuring the cache
119
127
As the library consults table information whenever it receives a request, caching can be used to avoid excessive queries
0 commit comments