UTF8Cleaner 中间件可从环境中移除无效的 UTF-8 字符,以免您的应用程序因为这些字符而卡死。可防止错误发生...
UTF8Cleaner 中间件可从环境中移除无效的 UTF-8 字符,以免您的应用程序因为这些字符而卡死。可防止错误发生...
Rack middleware to remove invalid UTF-8 characters from the environment so that your app doesn't choke on them. Prevents errors like "invalid byte sequence in UTF-8".
Add this line to your application's Gemfile:
gem 'utf8-cleaner'If you're not running Rails, you'll have to add the middleware to your config.ru:
require 'utf8-cleaner'
use UTF8Cleaner::MiddlewareThere's nothing to "use". It just works!
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)暂无开放 Issues,或尚未同步最近议题。