I forgot to specify page encoding in the layout. Now it's ok :) Thank you all
On 6 Mag, 11:02, Ryan Schmidt <[email protected]> wrote: > It sounds like your database table is latin_swedish_ci, but you have stored > UTF-8-encoded data in it. I concur with euromark's recommendation to change > your database tables' encoding to UTF-8, but you'll have to take special care > to convert the encoding of all your existing data properly without messing it > up (unless your existing data is only test data in which case just truncate > it and make new test data). > > On May 5, 2011, at 07:07, Mariano C. wrote: > > > > > Data in DB is stored as latin_swedish_ci. > > > On 5 Mag, 00:13, euromark <[email protected]> wrote: > >> 1) @ryan: the other way around. encoding of the DB is probably wrong > >> (not utf8) > > >> 2) globally: debug 0 - in this particular action: > >> Configure::write('debug', 2); > > >> On 5 Mai, 00:02, Ryan Schmidt <[email protected]> wrote: > > >>> On May 4, 2011, at 16:55, Mariano C. wrote: > > >>>> 1) when I insert data inside DB through a form, it will be stored as: > >>>> "This letters è is è and this l’ is an apostrophe " > > >>>> If I try to edit this text trough proper editing form, all of this > >>>> strange characters will be represented in right way as: è and '. > >>>> What can I do to proper echo the text even not in HTML form? > > >>> Hard to know exactly what's happening without more info. One possibility > >>> is that the data is being stored correctly as UTF-8, but then when you > >>> are displaying it, you're on a page with encoding ISO-8859-1; the > >>> solution would be to ensure your pages are using UTF-8 encoding.- > >>> Nascondi testo citato > > - Mostra testo citato - -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
