3 ms·
> Please don't. Set the charset in your headers (and it should be utf-8 unless you have a very good reason). Legitimate question: why? If I'm not planning on u
by traes 6y ago
> Please don't. Set the charset in your headers (and it should be utf-8 unless you have a very good reason).
Legitimate question: why? If I'm not planning on using non-ASCII characters, why bother?
- rglullis 6y agoThere is a huge distance between what you are planning to do and what happens when reality shows up.
- dragonwriter 6y ago> Legitimate question: why? If I'm not planning on using non-ASCII characters, why bother? Because not all character sets are ASCII compatible, and you don't know that your user's default is, even though most browsers' defaults if not customized are.
- thristian 6y agoBecause if you don't specify a character set, the browser will be forced to guess, and even with plain ASCII input the guess is not always reliable: https://en.wikipedia.org/wiki/Bush_hid_the_facts https://en.wikipedia.org/wiki/Bush_hid_the_facts
- lazyjones 6y ago> why? If I'm not planning on using non-ASCII characters, why bother? IF you have any user input at all (forms...), you will end up with major headaches.