Post with unicode characters

Any feedback is welcome. Guests are allowed to post.

Post with unicode characters

Postby the one » Oct 15th, '09, 9:44 pm

The server has problem with post contains unicode characters...Can the admin take a look? :rant:
the one
 
Posts: 16
Joined: Aug 4th, '09, 1:51 pm

Re: Post with unicode characters

Postby nhyone » Oct 16th, '09, 3:29 pm

Never post in the right folder, how to take a look?

I've converted selected table columns to Unicode. Subject and body should now allow UTF-8. All other fields do not.

I wonder why the database wasn't in Unicode in the first place? :hmm:

I'm not confident enough to convert all columns to Unicode...
(void *) &NHY;
nhyone
 
Posts: 165
Joined: Aug 2nd, '09, 4:28 pm
Location: Singapore

Re: Post with unicode characters

Postby nhyone » Oct 16th, '09, 4:04 pm

Okay, I've bitten the bullet and converted every table to UTF-8 (after backing up, of course). I hope everything still work. :D

A little SQL knowledge is useful:

USE information_schema;

SELECT CONCAT('ALTER TABLE ', table_name, ' CONVERT TO CHARACTER SET utf8;') FROM tables WHERE table_schema = 'db_name';


And then execute the output.
(void *) &NHY;
nhyone
 
Posts: 165
Joined: Aug 2nd, '09, 4:28 pm
Location: Singapore


Return to Feedback, Requests and Support

cron