Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread sebb86
Martin, cricket Thanks for your help. The problem is solved. I made failures with the editor. I opened every file and choose "UTF-8 without BOM" and thought, that at this point, the file is UTF-8 converted. This is wrong. I have to open every file and use "Convert to UTF-8 without BOM". Sorry for

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread Martin Radosta
I would say the problem is in static content encoding then. Assuming the left menu and content is in the same file, try this: echo 'Mitarbeiter Test Strange_Character' . ''; echo utf8_encode('Mitarbeiter Test Strange_Character') . ''; echo utf8_decode('Mitarbeiter Test Strange_Character') . '';

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread sebb86
Martin, cricket Hello, > > Assume you are using mysql --> yes > > 1) Make sure you have add this to database.php default array > > config:'encoding' => 'utf8' --> done > > 2) Make sure the table collation is utf (could be uft8_general_ci) --> > > done > > 3) Make sure the table is e

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread cricket
On Apr 7, 11:50 am, Martin Radosta 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:

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread Martin Radosta
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 coll

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread sebb86
Martin Thank you for helping me! When i do what you suggest, i see the special chars. ("echo 'áéíóúñ£ €';") But, in your message, i dont see this characters. i only see it in the e-mail, which i get when someone put a message here. Greetings. Check out the new CakePHP Questions site http://cake

Re: UTF-8 website problem (database encoding works)

2010-04-06 Thread Martin Radosta
Your configuration should work, so must reduce the errors source. Can you see "special characters" hard coded in html correctly in the page? I mean, do not use the database Leave just this in the head and make sure the file is correctly utf-8 saved - inside my default.ctp layout file: and inside

UTF-8 website problem (database encoding works)

2010-04-06 Thread sebb86
Hello, instead of umlauts, i see only signs on my website. I think the problem occurs because i developed with Windows 7 with a tool which is not UTF-8 compatible and later, i moved the needed files to Ubuntu. To solve this, i downloaded the Notepad++ Editor. Then i opened all files and checked "En