我试图用GetMethod调用来自java servlet的url:
HttpMethod method = new GetMethod(url);
method.setRequestHeader("Content-Type", "text/plain; charset=" + "UTF-8");
错误讯息:
Invalid uri 'https://test.com/test?partner_deal=deal&username=Arto.Kank¿¿¿¿': Invalid query
似乎问题在于编码,因为用户名应该是Arto.Kankää 如何解决?