在我的应用程序中,我调用了一个Web服务并接收了这个字符
ad_module=https%3A%2F%2Fs.ytimg.com%2Fyts%2Fswfbin%2Fplayer-vfl7UxYqE%2Fad.swf&tmi=1&sentiment=2&fexp=900718%2C907263%2C927622%2C931348%2C9406165%2C941004%2C943917%2C945049%2C947209%2C947225%2C948124%2C948528%2C952302%2C952605%2C952901%2C955301%2C957103%2C957105%2C957201%2C957505%2C959701&iv_allow_in_place_switch=1&iv_load_policy=1&thumbnail_url=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGdbNLaAsWRQ%2Fdefault.jpg&title=New+Renault+Twingo+2014+90hp+acceleration&hl=de_DE&watch_ajax_token=QUFFLUhqblVhTlpnNUJKNVZ5RlVmbjlCX2xqRmJCWDM4UXxBQ3Jtc0tuLWZJY3pvQ21nTng1eUt3WWZwVmQyMzQ0Y0tWQjVGamZ2STZZOERla0xINDBsLWxZaUlLU190VXljUUtnLWRuTi10SEZwUWoxeFdnYU1EaFR2RXdPWFpVbGtHVllEQjJGb0Y1a19XYmx6a0xqZF9lQQ%3D%3D&allow_ratings=1&iurlmq=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGdbNLaAsWRQ%2Fmqdefault.jpg&ldpj=-7&adsense_video_doc_id=yt_GdbNLaAsWRQ&oid=OhtdX2lS_hQJkSaAgDys-g&cos=Windows&sffb=True&account_playback_token=QUFFLUhqbEtfaWtianhZUnZQWVVDWkktdjl5ejMyd2Mtd3xBQ3Jtc0ttQlVFSVdZdUN2MHZOSDdEY0lzZVozdE5xLUdQcy1uYkpNRG5FeHJTa3pxVDUzNDNiaWRHcUp5Z2...
我如何编码该字符串,以便我可以再拨打一个电话并从其中一个链接接收数据?
我已经尝试编码为UTF-8,但这并没有解决问题
使用此tool我可以得到一个有效的结果( Unicode U + hex表示法),但我不知道代码中的编码是什么样的,任何想法?
试过这个:
final Charset UTF_8 = Charset.forName("UTF-8");
text = new String(text.getBytes(UTF_8), UTF_8);
和此:
text = URLDecoder.decode(text, "UTF-8");
但他们甚至没有改变某些东西
我是否也可能需要在网页请求(输入流等)上更改某些内容?
编辑:必须解码两次才能获得工作网址