I have problem with greek characters and chtml-CActiveForm classess.
For example I write
<?php echo $form->labelEx($model,utf8_encode('τιτλε')); ?>
and there is Ï���������� -if I write
I use xampp 1.7.2.I also write chtml::encode().
What is wrong?
(Site Sense Web)
I haven’t tried this myself but was wondering if you’re trying to encode a string that is already UTF-8?
A simple function like this may help:
can you solve your problem
if yes,please say how?
you can also use utf-8 meta tag in page head section, i think this resolve your issues.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
you can also read this article for more details: