3 ms·
Akira Matsuda actually suggested at RailsConf that maybe Rails handling non-UTF-8 encodings was not necessary, and maybe phasing it out was a good idea. I wasn
by steveklabnik 11y ago
Akira Matsuda actually suggested at RailsConf that maybe Rails handling non-UTF-8 encodings was not necessary, and maybe phasing it out was a good idea.
I wasn't present for the talk, just saw his slides.
- nateberkopec 11y agoAkira was talking about a specific context - view rendering. Which makes sense, who the hell ever renders a view in anything other than UTF-8? Checking input, however, is a whole 'nother ballgame.
- steveklabnik 11y agoHe was talking about the view layer, that's true. Even then though, your source is likely to be in UTF-8, and Rails' form helpers add <form accept-charset="UTF-8"> so these days, the non-UTF-8 usage in Rails apps should be pretty tiny, I would think? It'd be stuff coming from outside of forms.