You should probably be using mb_strtolower() to cope with multi-byte characters.

 

  Toby

 

From: debussy007 [via Zend Framework Community] 
[mailto:[email protected]] 
Sent: Sunday, September 04, 2011 12:22 PM
To: thartdyke
Subject: Zend_Translate and encoding issue

 

Hi, 

I have an issue when I try to strtolower a string that contains accents and 
that i try to translate with Zend_Translate, e.g. 
strtolower($this->translate('Médecins')) 

It will give m<some strange characters>decins 
If I don't call strtolower, Médecins is correctly printed. 

I have all my pages in UTF-8 without BOM, as well as the translation source 
files (which are PHP files containing arrays), and of course 
* $this->view->setEncoding('UTF-8'); 
* <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
* even tried to add header('Content-Type: text/html; charset=utf-8');  for that 
specific page but still problems) 

Anyone can help ? I'm out of ideas now ... :( 
Thank you 



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Translate-and-encoding-issue-tp3789084p3789091.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to