Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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="&#x2713;" /><![endif]-->

Has anyone experimented with doing that?



what would the gain be?


It would be less likely to leak out in to a GET string and confuse people.


It also gives people more info to search with.


For 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: