Welcome Guest, Not a member yet? Register   Sign In
[Solved]Who to: i18n in the URI.
#1

[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
#2

[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.
#3

[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
#4

[eluser]pistolPete[/eluser]
Then have a look at this thread: http://ellislab.com/forums/viewthread/101993/
#5

[eluser]Nonox[/eluser]
pistolPete
This contribution sounds great! I'm going to try with that and I'll tell you the result.

Thanks!
Nonox
#6

[eluser]Nonox[/eluser]
pistolPete.
I have been tested the solution developed by oscar alexander, and works fine! I have only a couple of questions for Him, I did this questions in the corresponding thread.

Again Thanks.
Nonox




Theme © iAndrew 2016 - Forum software by © MyBB