WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_backup is not creating utf8 files (2 posts)

  1. snakefoot
    Member
    Posted 7 years ago #

    Have been making backups of my blog database from 2.0.5 and now with 2.0.7.

    Can see that the sql-file in my early backups are encoded in UTF8, and now the backups are encoded as ANSI.

    When performing an import from phpMyAdmin then it complains about special characters (Are able to import by changing the encoding of the sql file to UTF8 using Notepad).

    What has happened to the sql-file encoding ?

  2. snakefoot
    Member
    Posted 7 years ago #

    Well converted all my tables to UTF8-unicode and added the following line to wp_db.php:

    mysql_query("SET NAMES 'utf8'");

    ( Just above $this->select($dbname) )

    Now my wp_backup saves as UTF8 again, and the encoding looks good.

Topic Closed

This topic has been closed to new replies.

About this Topic