Re:In MySQL, use “utf8mb4” instead of “utf8” (2016)
by fleddr on Wednesday January 12, 2022 @04:22PM
(#29912839)
At least once, but it's been a while. From the top of my head:
- set encoding at HTML head
- also at any HTML form element
- Set database collation correctly
- I believe it also needs to be done per table
- The PHP -> MySQL connection itself may need to have the encoding set
- All string manipulation to be done with mb_
- Even ensure your code files themselves are in UTF8
- set encoding at HTML head - also at any HTML form element - Set database collation correctly - I believe it also needs to be done per table - The PHP -> MySQL connection itself may need to have the encoding set - All string manipulation to be done with mb_ - Even ensure your code files themselves are in UTF8