Wordpress - Default table collation on plugin activation?
just in case somebody does need this, you could set the collation this way.. the row after the UNIQUE KEY id (id)
part should look like this:
) DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;";
You're missing the point that there is collation not only for the DB but as well for tables and even fields.
Therefore from your point of view, I assume that your CREATE TABLE statement is "not complete". Before using SQL statements, please learn the language first.
See CREATE TABLE
Syntax (MySQL Manual).
Especially table_options
/ table_option
and [DEFAULT] COLLATE [=] collation_name
there in.
UPDATE:
Please see Wordpress Database Charset and Collation Configuration for an in-depth description where and how to setup wordpress regarding charset and collation.