I have to replace an existing server with the new one. Old one is Fedora Core 3 based server with the latest update of PHP available for it (version 4.3) and the latest 4.1.14 version of MySQL (from www.mysql.com site; default character set of the database and tables is UTF-8, default collation is utf8_general_ci). phpinfo() shows old version 3.23 communication with MySQL (shared-compat installed). Drupal version is 4.6.3. The site is in Slovenian language, with accented letters (č, š and ž). On the new server, there are serialize() errors reported and almost no content is displayed. I've found out the reason must be a character handling.
To be precise, the old system stored everything in pure UTF-8 format to a database (as displayed with phpMyAdmin or MySQL Query Browser). Now, on the new system, when these strings are handled by drupal, something goes terribly wrong.
I've also installed a new drupal 4.6.3 test site. Entering our accented letters there was a problem with a small letter c-caron (č). All others were displayed correctly, but that one was messed. This problem was resolved by replacing the original 4.1.12 MySQL (comming with Fedora 4) with the MySQL 4.1.14 one (from www.mysql.com, glibc 2.3 version - exactly the same as on the old system...).
Now, all letters on the new server are displayed OK, but this is not resolving the basic problem. Looking at the underlying MySQL database, I see our accented characters were not stored as UTF-8 (everything, the database itself and tables all have default character set UTF-8 and character collation utf8_general_ci, exactly as on the old server), but as 2 weird characters (most probably 2 bytes from UTF-8 character - Č is stored as 'ÄŒ', Š as 'Å ', Ž as 'Ž', č as 'Ä', š as 'Å¡' and ž as 'ž').