Django problem of resolving special characters in url

一世执手 提交于 2019-12-03 13:39:51

Just some tips before going further:

Have you tried with other characters such as a space (%20) or an accented ASCII character? Also, have you tried putting other characters after the %23 (other than the slash) to see if they're stripped also?

One guess could be that as the # is considered as an anchor on the current page, the # and whatever is after will be stripped in the rewrite.

I'd have to agree with the first answer - and without access to the apache configuration, you might be out of luck. Using 'CSharp' or something in that vein might be the way to go.

# has special meaning in URI, same as / or ? does. Do you have this issue with other symbols? Ultimately, you shouldn't be using a # sign in a URI anyway, unless you're referring to an anchor on the page.

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