Making UTF-8 Url Rules

Hi,

My website is in hebrew and I’m trying to make url rules (using main.php config file) in hebrew.

But it seems it just dont work, here is want I’ve already tried:


'urlManager'=>array(

	'urlFormat'=>'path',

	'rules'=>array(

		'טיפוח'=>'shop/index',

		urlencode('טיפוח')=>'shop/index',

	),

),

I have already tried to save main.php config file as UTF-8 without BOM - not working.

Anyone has an idea how to solve this problem?

Thanks :)

This is not the best way of doing this but it should work. I’ve tested this now and it works for me. So probably your files are saved with the wrong encoding. P.S Do not use urlencode on the keys.

Thanks Vince its working without urlencode() on the keys.

It was Eclipse that changed the encoding of the file back to ANSI…

Thank you.