<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Url on Breathe</title><link>https://breathe.cyou/tags/url/</link><description>Recent content in Url on Breathe</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 19 Oct 2026 16:08:08 +0800</lastBuildDate><atom:link href="https://breathe.cyou/tags/url/index.xml" rel="self" type="application/rss+xml"/><item><title>url空格编码</title><link>https://breathe.cyou/posts/url%E7%A9%BA%E6%A0%BC%E7%BC%96%E7%A0%81/</link><pubDate>Mon, 19 Oct 2026 16:08:08 +0800</pubDate><guid>https://breathe.cyou/posts/url%E7%A9%BA%E6%A0%BC%E7%BC%96%E7%A0%81/</guid><description>&lt;h2 id="一次经历"&gt;一次经历&lt;/h2&gt;
&lt;p&gt;服务端按照URLEncoder.encode(str)编码，安卓客户端根据Uri.decode(str)解码，除+之外，所有的字符都解析正确，唯独这个+没有解码为空格，这问题也好解决，安卓客户端使用URLDecoder.decode(str)就可以了，客户端代码改动，需要上线才能解决问题，最好还是服务端解决空格转+问题。其实也很简单。直接将encode之后的结果再做一次统一转换，将+统一改为%20。这样，安卓客户端也不用修改Uri.decode()为URLDecoder.decode()了，而且这类问题就从根本上解决了。&lt;/p&gt;</description></item></channel></rss>