Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2001
Posts: 1,156
Likes: 83
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,156
Likes: 83
Originally Posted by stoveboltgeek
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-declarations

Originally Posted by stoveboltgeek
Everything 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-charset

Database 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

Quote
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


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.1 // wip: UBB.threads 8.1.0
isaac @ id242.com // my forum @ CelicaHobby.com
Sponsored Links
Entire Thread
Subject Posted By Posted
Corrupted characters stoveboltgeek 12/29/2025 2:10 AM
Re: Corrupted characters isaac 12/29/2025 2:34 AM
Re: Corrupted characters stoveboltgeek 12/29/2025 2:48 AM
Re: Corrupted characters isaac 12/29/2025 3:14 AM
Re: Corrupted characters stoveboltgeek 12/29/2025 3:46 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4606
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 24
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)