1 |
On 05/25/14 21:04, Michael Orlitzky wrote: |
2 |
>On 05/25/2014 08:06 PM, Joseph wrote: |
3 |
>> On 05/25/14 19:32, Michael Orlitzky wrote: |
4 |
>>> |
5 |
>>> Then, in mysql, run, |
6 |
>>> |
7 |
>>> show create database $your_database; |
8 |
>>> |
9 |
>>> This will show you the default character set, like, |
10 |
>>> |
11 |
>>> /*!40100 DEFAULT CHARACTER SET utf8 */ |
12 |
>>> |
13 |
>>> If it says utf8 and you've got those lines in my.cnf, you're in good |
14 |
>>> shape, and your console test (at least) should work. Getting PHP to play |
15 |
>>> along is another adventure, but take it one step at a time. |
16 |
>> |
17 |
>> In /etc/mysql/my.cnf |
18 |
>> I have them as default |
19 |
>> |
20 |
>> [client] |
21 |
>> default-character-set = utf8 |
22 |
>> |
23 |
>> [mysqld] |
24 |
>> character-set-server = utf8 |
25 |
>> |
26 |
> |
27 |
>What about the output of "show create database $your_database;"? |
28 |
>Depending on how the database was created, it could still have another |
29 |
>character set. |
30 |
|
31 |
I was trying to run this command in phpmyadmin: |
32 |
show create database $temp; |
33 |
|
34 |
I'm getting an error message. |
35 |
-- |
36 |
Joseph |