Thursday, December 13, 2012

Re: language problem in database cake1.3

hi Marcelo,... 

here is solutiion,... 

have your database tables in:  
DEFAULT CHARSET=utf8;

also add this on top of .sql file: 
SET NAMES 'utf8'; 
SET CHARACTER SET 'utf8'; 

in config/database.php add: 
class DATABASE_CONFIG {
'encoding' => 'utf8',

and in /app .htaccess file add this line 
AddDefaultCharset UTF-8 

add this in a <head> : 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

that's all,... any language added to database can be readable in the view,... 


On Wednesday, December 12, 2012 3:53:58 AM UTC-8, Marcelo F Andrade wrote:

> On Tuesday, December 11, 2012 10:36:01 AM UTC-8, Chris wrote:
>>
>> anyone,...? 
>> why do I see this crap in a view with cake1.3,....? 
>> ›Ð°Ñ ковый май- Розовый вечер  
>>
>> where it used to work in 1.2 
>>
>> thanks 

Em 11/12/2012 23:59, "Chris" <chri...@yahoo.com> escreveu:
>
> the problem is solved,... 

Please, share with us how did you fix it.

MARCELO DE FREITAS ANDRADE
"Minha alma é maior do que eu."

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: