/app/config/database.php

<?php
class DATABASE_CONFIG {

    var $default = array(

        'prefix' => '',
        'encoding' => 'utf8'
    );

}
?>

Andras kende

On Mon, Nov 10, 2008 at 9:04 AM, Constantine Karosanidze <
[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> Here is my case:
>
> I have database connection in UTF-8
>
> database is in utf8_unicode_ci (all tables, all fields, everything)
>
> and when i save something in database I get not utf-8 when im checking
> using phpmyadmin (I get some symbols, not utf-8 text)
>
> but when cakePHP reads that data back from database and display in
> view text is again UTF-8
>
> I have seen this case with many scripts and I know that problem is
> connection charset to database that is not set to UTF-8
>
> so if anybody has changed connection charset please let me know how
> you did it.
>
> in general all thigs work but in database i got not exactly utf-8
> chars
>
> I have problem because other php application also reads data from that
> database and its using pure, correct UTF-8 connection and reading
> writeing to database.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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