Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Malformed UTF-8 characters, possibly incorrectly encoded #69

Closed
andreidmour opened this issue Sep 23, 2018 · 4 comments
Closed

Malformed UTF-8 characters, possibly incorrectly encoded #69

andreidmour opened this issue Sep 23, 2018 · 4 comments

Comments

@andreidmour
Copy link

Using Passport and User UUID causes "Malformed UTF-8 characters, possibly incorrectly encoded" in oauth/token

@vpratfr
Copy link
Collaborator

vpratfr commented Sep 24, 2018

Can you paste your model class here?

@nolanpro
Copy link

I get this too. There's an issue when outputting a JSON stack trace that includes the SQL (maybe other places too). I don't have a viable workaround so I hope someone can help out.

I can fix the issue by modifying vendor/laravel/framework/src/Illuminate/Database/QueryException.php

$this->message = $this->formatMessage($sql, $bindings, $previous);

to

$this->message = utf8_encode($this->formatMessage($sql, $bindings, $previous));

But of course we shouldn't modify vendor files directly. I'm trying to figure out how to use macros or facades to achieve the same thing. Any ideas?

@yaquawa
Copy link

yaquawa commented Oct 5, 2018

Checkout #61

@freekmurze
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants