On Apr 7, 11:50 am, Martin Radosta <martinrado...@gmail.com> wrote:
> So, you have no problem with the editor encoding, nor files enconding.
> The problem is with data saved in database or with the way you retrieve it.
>
> Assume you are using mysql.
>
> 1) Make sure you have add this to database.php default array config:
>      'encoding' => 'utf8'
> 2) Make sure the table collation is utf (could be uft8_general_ci)
> 3) Make sure the table is empty
> 4) Add data through the framework (not phpmyadmin or other). Try a
> simple $Model->save(...
> 5) Get data through the framework. Try a simple $Model->find('all', ...
> 6) Give us detailed feedback if it does not work for each step.
>

And, if you already have a text file that you're loading into MySQL
(and it has the correct special characters), add this to the top:

SET NAMES 'utf8';

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to