【发布时间】:2013-03-04 20:22:24
【问题描述】:
我正在通过我的 android 应用程序传递以下网址
http://server.com/core/put/18.00283670425415/59.353229999542236/%5BB%40463336a0/
最后一个参数是一个 URI 编码的字符串。 在 Flask 中,我的路线看起来像
@server.route('/put/<long>/<lat>/<tagline>/')
def put(long, lat, tagline):
return tagline
我得到[B@463336a0 作为返回,我的网址更改为
http://server.com/core/put/18.00283670425415/59.353229999542236/[B%40463336a0/
这里发生了什么?这快把我逼疯了。
【问题讨论】: