It works. Thank you.
Just replacing these two lines:
$charset = $wpdb->charset ? $wpdb->charset : ‘utf8’;
$collate = $wpdb->collate ? $wpdb->collate : ‘utf8_general_ci’;
for these ones:
$charset = ‘utf8’;
$collate = ‘utf8_general_ci’;
This is the code:
// strip trailing comma and linebreak
$sql = substr($sql, 0, -2);
$charset = $wpdb->charset ? $wpdb->charset : ‘utf8’;
$collate = $wpdb->collate ? $wpdb->collate : ‘utf8_general_ci’;
$sql .= “\n)\nDEFAULT CHARACTER SET $charset COLLATE $collate;”;
What do you mean exactly with?
Replace the charset
$charset = ‘utf8’;
$collate = ‘utf8_general_ci’;
There are no changes.
Thread Starter
lynko
(@lynko)
Yes, the question was if perhaps anybody know the code for doing that.