Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jhoskins98's avatar

Invalid encoding stopping POST in Laravel

Using spatie webhook for Stripe (https://github.com/spatie/laravel-stripe-webhooks) on new system - fresh ubuntu server with Apache. Stripe reports a 404 with an error of "Invalid encoding: ISO-8859-1". So clearly Stripe is saying that the POST request has data not encoded with proper character set (probably UTF-8). But not clear how to change this for a POST vs. for a get.

0 likes
7 replies
jhoskins98's avatar

Not a fix for me - ssl from start. But a good find in Stack Overflow. Thanks

Sinnbeck's avatar

Did you check default_encoding in php.ini?

jhoskins98's avatar

Complete red herring - issue was the rewrite was not working on apache - once that was fixed it works. Can I delete this whole embarrassing post? ;)

Please or to participate in this conversation.