[Solved]Who to: i18n in the URI. |
[eluser]Nonox[/eluser]
Hi everyone, I'm developing a web site i18n, and I have a problem when I try to pass some characters like ascents into the URI, they are recognized like disallowed characters. I know that I can rewrite the $config['permitted_uri_chars'], but look like really bad idea add ALL the possible disallowed characters for all languages. What do you think? any of you have this issue? Thanks. Nonox
[eluser]pistolPete[/eluser]
I wouldn't use special characters in the URI. Use the function url_title() in url helper to strip out any special chars. Or develop your own function which replaces the special chars.
[eluser]Nonox[/eluser]
Hi. I'm using the url_title() function, the problem with this function, is that removes characters that are essential, for example: echo url_title('espaƱa'); Would produce espaa I could specify all special characters for Spanish and create a new function, but, How could I do with German, Portuguese, Italian, etc, etc... ? Thanks! Nonox
[eluser]pistolPete[/eluser]
Then have a look at this thread: http://ellislab.com/forums/viewthread/101993/
[eluser]Nonox[/eluser]
pistolPete This contribution sounds great! I'm going to try with that and I'll tell you the result. Thanks! Nonox
|
Welcome Guest, Not a member yet? Register Sign In |