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 of<head>:
[code]
<?php echo $html->charset(utf-8); ?>
[/code]


In the layout do something like this "echo 'áéíóúñ£€';" and send us the feedback.

Regards

MARTIN



On 04/06/2010 09:35 AM, sebb86 wrote:
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 "Encode in UTF-8 without BOM" respectively "Convert to
UTF-8 without BOM". But the problem is still present.

My database encoding works with uft-8 (encoding option in database.php
made it possible).

What i've tryed:

- inside my default.ctp layout file:
[code]
<?php header('Content-type: text/html; charset=UTF-8') ;?>
[/code]
and inside of<head>:
[code]
<?php echo $html->charset(utf-8); ?>
[/code]

- inside my core.php file:
[code]
Configure::write('App.encoding', 'UTF-8');
[/code]

Apache2 is also set to UTF-8.

I spend about 2 days and cant solve this :(
I'm so frustrated. :/

Can someone help me out of this?

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 [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

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

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 [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