Open mpyw opened 5 years ago
@taylorotwell @driesvints @staudenmeir
Basically, I was not willing to stick to emulation. But this time I had the purpose of temporarily changing the collation in one SQL using a placeholder. Then I came to the point that it is inconvenient without emulation.
Would you have any plans about this? Or we need to express "Laravel doesn't suport emulation. Please be careful that we don't use client charset specification." in the documentation.
This works only with emulation:
Post::whereRaw('message like ? collate utf8mb4_unicode_ci', [$foo])->get();
We may need more discussion on this: laravel/framework#28149 laravel/framework#28137 laravel/framework#28126
As some people assuming that Laravel supports emulation have changed their settings, I think it is worthwhile to specify the client charset. In any case omitting client charset is non-standard way compared to basic PDO usage.