What does this mean? If the database storage engine is set to utf8, why would newly added data within it be stored in some other charset?
Your HTML header should be set to UTF-8 so the new data would also be stored in that format
<meta charset="utf-8">
https://www.w3.org/International/questions/qa-html-encoding-declarationsEverything works and looks fine UNTIL I run rebuild. And it's easily fixed with a query. After it's fixed, it remains fixed until I run rebuild again. Do you really think rebuild is not the problem?
PHP's default character should be set to UTF-8
default_charset = "UTF-8"
https://php.net/default-charsetDatabase collation should be set to utf8mb4_general_ci
Your database table collation should also be set to utf8mb4_general_ci
/forums/admin/dbinfo.php
Also, Control Panel > Paths & Database: Database
"MySQL Full Unicode Support (utf8mb4)" should be checked
MySQL by default only uses a three-byte encoding and so values in the four-byte range (e.g. Asian characters and Emojis) cannot be stored. Any attempt to enter a text that contains four-byte characters will result in those characters being returned as errors. MySQL does provide full four-byte UTF-8 support, but it requires certain database settings to be configured. Converting to utf8mb4_unicode_ci is preferred. 4-Byte UTF-8 Unicode requires MySQL 5.5.3 or above.
Additional reading here
https://www.w3.org/International/techniques/server-setup