I have posted and readed many times about character encoding. But most
of the times the responses are incomplete and confusing is there a good
tutorial for this.
I have made a simple script with cakephp the index.thtml view is like
this
<?
echo "Año, canción"
?>
and the output is:
A?o, canci?n
I was using UTF8 for encoding, then I've changed to ISO-8859-1
adding the following two lines to the (default.thtml, ajax.thtml...etc)
scripts.
<?php
mb_http_output('ISO-8859-1');
ob_start('mb_output_handler');
?>
and now the outputs are rigth. I can also store and retrive data
correctly from the databse with cakephp. But there is only one problem
when I use the ajax autocomplete it still uses UTF8 for encoding my
query string to the database and I can't make querys with characters
like (Ñ,ñ..etc). Can someone give a GOOD explenantion about character
encoding.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---