MyBB Community Forums

Full Version: problem with 'ñ' in the url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
first sorry for my bad english....

second... i've install on my web you software mybboard and i think that i find a bad function.... in my url there are the letter 'ñ'... and when de user login in the foro, the software change the 'ñ' for 'ã±' and the 'ñ' for domain .es is good.... you can see that in http://foro.peñauniversitaria.es

What can i do in order to resolve this problem?

Thanks
Seems to be a similar problem as found here: http://community.mybboard.net/thread-41751.html

When I go to http://foro.peñauniversitaria.es though, I get redirected to http://foro.xn--peauniversitaria-7tb.es/.... could you use this link??
(2008-12-30, 05:59 PM)MattR Wrote: [ -> ]Seems to be a similar problem as found here: http://community.mybboard.net/thread-41751.html

When I go to http://foro.peñauniversitaria.es though, I get redirected to http://foro.xn--peauniversitaria-7tb.es/.... could you use this link??

yes i can put this url... but the navigator made the same and change xn--peauniversitaria-7tb for peñauniversitaria... and then the software change the 'ñ' for 'ã±'
Okay so in inc/class_parser.php

PHP Code:
$message = preg_replace("#([\>\s\(\)])(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\"\s<\[]*)?)#i", "$1http://$2://$3", $message);

i'm very bad with regukar expresion.... en this line where i've to put the 'ñ' in this line of code....
Okay so in inc/class_parser.php

PHP Code:
$message = preg_replace("#([\>\s\(\)])(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\"\s<\[]*)?)#i", "$1http://://", $message);

i'm very bad with regukar expresion.... en this line where i've to put the 'ñ' in this line of code....