#6152: App.encoding ---------------------------+------------------------------------------------ Reporter: qq71151461 | Type: Bug Status: new | Priority: Critical Milestone: 1.2.x.x | Component: General Version: 1.2 Final | Severity: Normal Keywords: | Php_version: n/a Cake_version: | ---------------------------+------------------------------------------------ In my application, I set the App.encoding as 'UTF-8' in my core.php. I debug the "Configure::read('App.encoding')" in Controller, and the result is "UTF-8", that is right. But I debug the "Configure::read('App.encoding')" in View, the result is "GB2312 ", that is not my expect. So I find the code in "l10n.php",384 line -- Configure::write('App.encoding', $this->charset); the "App.encoding" is changed by current language('zh-cn'). So I get the data from Mysql(encoding => utf8), and echod by function h(), some Chinese characters is wrong.
-- Ticket URL: <https://trac.cakephp.org/ticket/6152> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---