laravel-db2
laravel-db2 copied to clipboard
set default charset ?
Hi, this is not an issue, but a question about config : Is there a way to set charset in connection (config/database.php)? I'm getting array of object from a query with some values like this : 1 => {#513 +"label": b"verre 41 cl" +"code": "456987" +"brand": "20" }
"b" prefix before label "verre 41 cl" stand for "binary", which has to be decoded.
thanks
You can modify the CCSID value in the odbc_keywords array, see also https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.idad400/ccsids.htm.
Our data in de database is ISO-8859-1, but the clients need the data in UTF8. To accomplish this we modified the de DB2 processor configuration. See https://github.com/cooperl22/laravel-db2/pull/80.