Special chars problem


I have form submit problems with special (hungarian) chars like "ÁÉÚ" etc.:

If I enter special chars to form field it content not displayed.

Similar problem vith Active Record, it got saved correctly to databes, but when i want to display it and the field value contains special char it not displayed.


The problem is possibly my configuration becase the sample apps on yiiframework.com works correctly, please help me find the bad configuration on my server.



PHP Version 5.2.6

Linux 2.6.28 #1 SMP Sun Jan 4 02:50:31 CET 2009 i686

Configure Command './configure' '–with-apxs2=/usr/bin/apxs2' '–with-mysql' '–enable-maintainer-zts' '–prefix=/usr' '–with-gd' '–with-freetype-dir=/usr/lib' '–with-jpeg-dir=/usr/lib/libjpeg.so.62' '–enable-exif' '–with-png-dir=/usr/lib/libpng12.so.0.15.0' '–with-config-file-path=/etc/php5/apache2/' '–with-config-file-scan-dir=/etc/php5/apache2/conf.d' '–with-gmp' '–with-curl' '–with-freetype-dir' '–with-pdo-mysql=/usr'


Yii 1.0.1

Check your page encoding and database encoding settings.

[tt]AddDefaultCharset UTF-8[/tt]

added to [tt].htaccess[/tt] looks like fixed the problem, i thrught it will be harder to make it work.

Thanks!  :D