Talking to the PHP teacher: - "What's the encoding of strings in PHP?" + "uhhh w...

@meluzzy@woof.tech

Talking to the PHP teacher:
- "What's the encoding of strings in PHP?"
+ "uhhh why?"
- "Because we are sending data to it, so I don't want to wrongly interpret a string with one encoding as a different one"
+ "It just works"
- "But how? Like, I assume it is not UTF-8 since PHP is kinda old, so it is probably UTF-16. But we set the HTML to use UTF-8... But JavaScript uses UTF-16... But we are sending the form by just hitting Submit, there is no JavaScript involved. So what is it? Are forms sent with the encoding of the HTML document? How do you handle different encodings in PHP? Is the encoding stored in the POST request head?"
+ "Just, don't worry about it, it handles accents and special characters just fine"
- "uhhhh... sure"