On Feb 4, 7:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I have very weird problem.
> Hopefully I am doing something wrong here...
>
> If I input Korean characters into MySQL table (through CakePHP
> interface I threw together), i can read it back out, and everything is
> fine.
> But when I view the table data through phpMyAdmin, all Korean
> characters are garbled up.
>
> If I input Korean characters through phpMyAdmin SQL editor, Korean
> characters show up fine in the phpMyAdmin browser.
> But when I view the table data through CakePHP i threw together, all
> Korean characters are garbled up.
>
> You can see what I mean here:http://cake.ziroziro.com/books/knownbooks
>
> Collation on MySQL is utf8_unicode_ci
>
> The database setting I have set for database.php is,
>
> class DATABASE_CONFIG {
>         var $default = array(
>                 'driver' => 'mysql',
>                 'persistent' => false,
>                 'host' => 'localhost',
>                 'port' => '',
>                 'login' => 'cake_user',
>                 'password' => '*********',
>                 'database' => 'cake',
>                 'schema' => '',
>                 'prefix' => '',
>                 'encoding' => 'UTF-8'
>         );
>

Either UTF-8 should be UTF8 or you are not connecting with phpMyAdmin
using utf8 (at a guess).

hth,

AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to