invalid byte sequence in UTF-8 on page request

后端 未结 4 1057
走了就别回头了
走了就别回头了 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 12:52

    I've just posted a new gem called UTF8Cleaner which is heavily based on @phoet and @pithyless' work. It include a Railtie, so you can just drop it in to your Gemfile and forget about those "invalid byte sequence" errors.

    https://github.com/singlebrook/utf8-cleaner

提交回复
热议问题