On Wed, Oct 20, 2010 at 12:38 PM, KK <[email protected]> wrote: > Hello everyone! > > I use in my small cakephp (version 1.3) project some UTF8 signs. > > In one of my view I used lines below: > echo $this->Html->link('tryb edycji albumów', array('controller' => > 'albums', 'action' => 'index')); > > echo $this->Html->link('tryb edycji albumow', array('controller' => > 'albums', 'action' => 'index')); > > And as an output I received only the second line: > <a href="/album/albums/index"></a> > <a href="/album/albums/index">tryb edycji albumow</a> > How you may see, this first string with strange Polish letter ó (in > UTF8: ę) is not appear in html source. > > I set UTF8 encoding in every places I could: > - in app\config\core.php: Configure::write('App.encoding', 'UTF8'); > - in .htaccess files: AddDefaultCharset UTF-8 > - in app\views\layauts\default.ctp: echo $this->Html- >>charset('UTF-8'); > > In other places in this view file, Polish letters: ó (ę) and > others, are displaying with any problems. > How do you think, what could I do to make this function Html-link(..) > working properly? Does anyone know? > I would be very thankful for help!
Are you sure that the browser is serving the page as UTF-8? Check view->character encoding (or similar). Also, you can pass 'escape' option to the link function. It can be true, false, or charset string as defined here: http://php.net/manual/en/function.htmlentities.php 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
