invalid byte sequence in UTF-8 on page request

后端 未结 4 1022
走了就别回头了
走了就别回头了 2021-01-06 12:24

I\'m getting \"invalid byte sequence in UTF-8\" on page requests (permalinks) and I have no idea why nor can I reproduce it but I do get a lot of exceptions like this:

4条回答
  •  广开言路
    2021-01-06 13:05

    If you are using apache (and mod_rails) you can prevent these invalid url requests from hitting your Rails application completely by following this answer:

    https://stackoverflow.com/questions/13512727/how-can-i-configure-apache-to-respond-400-when-request-contains-an-invalid-byte/13527812#13527812

提交回复
热议问题