public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <mjo@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] php database character set
Date: Sun, 25 May 2014 21:04:47 -0400	[thread overview]
Message-ID: <5382932F.5050603@gentoo.org> (raw)
In-Reply-To: <20140526000619.GC11936@syscon7>

On 05/25/2014 08:06 PM, Joseph wrote:
> On 05/25/14 19:32, Michael Orlitzky wrote:
>>
>> Then, in mysql, run,
>>
>>  show create database $your_database;
>>
>> This will show you the default character set, like,
>>
>>   /*!40100 DEFAULT CHARACTER SET utf8 */
>>
>> If it says utf8 and you've got those lines in my.cnf, you're in good
>> shape, and your console test (at least) should work. Getting PHP to play
>> along is another adventure, but take it one step at a time.
> 
> In  /etc/mysql/my.cnf
> I have them as default
> 
> [client]
> default-character-set = utf8
> 
> [mysqld]
> character-set-server = utf8
> 

What about the output of "show create database $your_database;"?
Depending on how the database was created, it could still have another
character set.




  reply	other threads:[~2014-05-26  1:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-25 21:38 [gentoo-user] php database character set Joseph
2014-05-25 23:32 ` Michael Orlitzky
2014-05-26  0:06   ` Joseph
2014-05-26  1:04     ` Michael Orlitzky [this message]
2014-05-26  2:43       ` Joseph
2014-05-26  3:00         ` Michael Orlitzky
2014-05-26  3:36           ` Joseph
2014-05-26  3:56             ` Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5382932F.5050603@gentoo.org \
    --to=mjo@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox