News for hackers. Stuff that matters.
Re:How To Use UTF-8 Throughout Your Web Stack by dangrossman on Friday August 19, 2011 @09:34PM (#2905479)
Rather than add --default-character-set every time you invoke the mysql client, add the setting to your my.cnf/my.ini config file.
Re:How To Use UTF-8 Throughout Your Web Stack by getsat on Saturday August 20, 2011 @02:21AM (#2905982)
Just set the client and server defaults in my.cnf. MySQL has four places where encoding can be set: client connection, server, database, column. Setting the client and server in my.cnf covers everything.