3 ms·
I've often wondered if they could get rid of this entirely in rails by enclosing it in conditional comments, so that it is only included in forms sent by older
by grey-area 14y ago
I've often wondered if they could get rid of this entirely in rails by enclosing it in conditional comments, so that it is only included in forms sent by older IE:
<!--[if lt IE 8]><input name="utf8" type="hidden" value="✓" /><![endif]-->
Has anyone experimented with doing that?
- riffraff 14y agowhat would the gain be?
- simonw 14y agoIt would be less likely to leak out in to a GET string and confuse people.
- Dylan16807 14y agoIt also gives people more info to search with.
- grey-area 14y agoFor simple get queries like a search the utf param is visible in the url, so it can be ugly. There are ways round this of course, but as Rails is inserting it automatically, it would make sense if they only did it for the one browser which requires it.