Thursday, October 1, 2009

$form->input('') when database-field contains special characters

Hello,

I have the following problem, I already googled but did not find an
answer although I think it must be a quite common problem:

When adding or editing and inserting a special character in a text
field (for example ä, ö, ü, ², µ, ...) everything seems at first to
work fine. The text is correct in the mysql databse and is displayed
correctly in any view.ctp or index.ctp.

But when trying to edit this entry, that means calling edit.ctp with
"$form->input('title');" the text field containing special characters
simply stays completely empty. So I do not have the problem that the
special characters are displayed wrong, the whole content is simply
not displayed at all.

If it is important my settings are:
app/core.php
Configure::write('App.encoding', 'UTF-8');
my mysql database collation is latin1_swedish_ci

Thanks for any advise!


--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: