Hello, I've been searching around and I've seen similar cases but I
couldn't solve my problems.

I have a website under cakephp 1.2.6 wich has this same code and db in
my local server, and in a shared hosting, wich probably has different
default settings. In the local server everything works fine, on the
shared hosting information retrieved from db with special characters
shows them in western europe encoding.

I have:

Configure::write('App.encoding', 'UTF-8');
on core..

All DB encodings set to utf8 and collations to utf8_general_ci (they
were in spanish_ci and unicode_ci, neither changes anything).

The DB configuration set to:
'encoding' => 'utf8'

And in the layout:
<?php header('Content-Type: text/html; charset=utf-8'); ?>
on the head: <?php echo $html->charset() ?>

Static special characters in utf8 show ok.
The encoding of all files is utf8.

I wondered if the internal php encoding is still western europe and
it's converting whenever retrieves data from utf8 because of the
configuration. I checked up the Multibyte class con the cake folder,
wich I guess executes always, so maybe that mbstring_internal_encoding
is not defined. So as a solution I tried removing the 'encoding' =>
'utf8' from DB, but it doesn't fix it.

I've also tried adding AddDefaultCharset utf-8 to the .htaccess, but
that doesn't help either. Of course I can't see nor edit the php.ini.

I'd appreciate any help, thanks.

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.

Reply via email to