> when I create an entry in the database with the scaffolding interface,
> it's possible to save german umlauts. The scaffolding webpages display
> the entered characters correct, except in input fields (if try to edit
> such an entry) or drop down boxes. The content is not corrupt, it's
> empty. It makes not difference whether I use 'encoding' => 'UTF-8' or
> not. The tables are InnoDB with charset=UTF-8.
>
> This worked with 1.2.0.6311, but I swtiched to a newer revision since
> then HABTM relations seem to be fixed in the newer revisions. Is this
> bug or a error in my setup?

It'd help to see the relevant code, but for what it's worth, I'm
working on a CakePHP project at the moment that's using various
European languages and it's working fine with the latest nightly
release of Cake. All I had to do was make sure that /app/views/layouts/
default.ctp and the other layouts included <meta http-equiv="Content-
Type" content="text/html; charset=UTF-8"> in the HTML headers and it's
working fine with umlauts.

> I've also noticed that the entries in the database are latin1. Should
> cake convert the form data to utf8?

Technically, it doesn't matter which character set you use as far as
storing data into a database goes. Whatever you put in, you get the
same stuff out. I would recommend using "CHARSET=utf8
COLLATE=utf8_unicode_ci" however, because this makes the database
server realise that letters with accents and letters without accents
are the same, which makes it able to search and alphabetise things
properly.

Hope that helps a bit,
Zoe.
--~--~---------~--~----~------------~-------~--~----~
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