[eluser]umbungo[/eluser]
AHHHHHHHHHHH finally.
Escaping the brackets
does not work. I tried double/triple/quadruple escaping them too. After several hours staring at /trying to figure out /playing with the code trying to get things to work i finally got to the solution;
Code:
$route['Name-With-&\#40;Brackets&\#41;'] = "main/main/Name-With-(Brackets)";
$route['Name-With-&\#40;Brackets&\#40;/:any'] = "main/main/Name-With-(Brackets)/$1";
So thats HTML entity for brackets, IN DECIMAL, and not forgetting the escaping of #. Oddly (with my understanding, anyway), the HEX html entity encoding
Code:
'Name-With-&\#x28;Brackets&\#x29;'
does not work either.
note: I ******* HATE THESE ISSUES WITH CHARACTER ENCODING. How are you meant to tell what form it is deciding to take today? Almost impossible to debug too; echo anything in the browser and it comes out as normal text.