Fixing “Malformed UTF-8 characters” in Laravel

Malformed UTF-8 characters, possibly incorrectly encoded If you have ever seen this exception, chances are that you are saving byte strings to the database using a package like laravel-model-uuid . A byte string is arbitrary byte data formatted as a string; bytes, with string as their vehicle. This is great for efficiently storing small amounts of data, but as it’s arbitrary data, it’s not valid…