Home
Sign Up
Sign In
V2EX
›
问与答
tornado url 匹配里面 匹配 url 中的中文怎么写呢
geew
·
Nov 3, 2014
· 2933 views
This topic created in 4241 days ago, the information mentioned may be changed or developed.
比如这样的:
(r'/user/(?P<name>[\w_\-\u4e00-\u9fa5]+)/?', UserHandler, kwargs)
不行 匹配不到中文呢
u9fa5
u4e00
kwargs
1 replies
•
2014-11-03 20:47:38 +08:00
1
kzing
Nov 3, 2014
用 urllib.quote 吧
https://gist.github.com/Kzinglzy/5b3143491771b3f63d84
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
5959 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 58ms ·
UTC 03:34
·
PVG 11:34
·
LAX 20:34
·
JFK 23:34
♥ Do have faith in what you're doing.
❯