What to do with a community URL style like Last.FM or Wikipedia?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 23:53:58

Most browsers urlencode() 小林武史 to %E5%B0%8F%E6%9E%97%E6%AD%A6%E5%8F%B2.

Reguarding your .htaccess mod_rewrite rules, have you considered using something like:

RewriteEngine On
RewriteRule ^(user/)(.+?)[/]?$ user.php?username=$2
streetparade

Try urlencode and urldecode

Edit :

Here is Visualy the Description of url encoding and decoding

http://blog.neraliu.com/wp-content/uploads/2009/10/url-encoding.png

As far as I understand every URL with not ASCII characters is mapped to unique ASCII based url. This is actually a feature on the client side. Please look at: http://kmeleon.sourceforge.net/bugs/viewbug.php?bugid=631 to see examples and link to RFCs coverting this one.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!