Closed ingus-indigo closed 1 year ago
how about possible to add afterConnect hook and return connection from callback then i can force every connection to "SET NAME UTF8" i think this is the best way?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have problem with cast mysql charactor set tis620 to utf8 when I use following solution
My Coding using by route middleware
The result correctly but somtime the result not cast to utf8, I think because they use different connections
I'm try another solution (inline casting)
Above code give me the same middleware problem
Finaly when i try to use database transaction
OR use hook by override BaseModel
This solution solves the problem perfectly no more distorted language came out
Finaly i need solve my problem for best practices solution my solution depen on transaction only, can i solve this with out useing transaction?