Hi to everyone, I've installed the
MySQL 4.1.14 with Standard Character Set latin1
(default value for instalation) on my server.

I'm a spanish/portuguese user and I use a lot of characters
like á,é,í,ó,ú,ñ,ç,è,ã, etc, etc...

I want to know if there are a way to setup or hack the database
configuration
with CakePhp in order to work with these characters.

I've already used the utf8_encode($var) and utf8_decode($var) values on
my utf-8 views, when I'm showing a value with:

<?php echo utf8_encode($data['Model']['field']); ?>

there's no problem.

But when I want to Add a new record for the database asociated with
the Model, I don´t know how to convert to utf-8 the value that I'm
posting.

With the Edit view is another problem, first of all, I have
to encode the value and show it, and then save it decoding this
value.

It's for these reasons that I want to know if there are a hack or
configuration
on CakePHP that permit works with "views" with any character set and
"databases"
with any character sets.

It would be nice if it exists, this is alwalys a headache for
non-english
programmers.


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

Reply via email to