Decoding the url in java -


i have encoded query string , don't know type of encryption is... have tried urldecode.decode not work. in c# used .decode decode string, not working here. can me this? kind of string content related font. don't think utf-8 encoded....the string goes this...

%u0925%u4e2d%u570b%u51fa%u81ea%u7dad%u57fa%u767e%u79d1%uff0c%u7531%u5605%u5168%u66f8%u5462%u7bc7%u6587%u8981%u6e05%u7406%u6216%u91cd%u5beb%u4ee5%u7b26%u5408%u66f4%u9ad8%u8cea%u91cf%u6a19%u6e96%u3002%u5982%u679c%u4f60%u505a%u5f97%u5230%u53ef%u6539%u5584%u4e0b%u6ce8%u610f%uff1a%u5514%u4fc2%u83ef%u4eba%u6c11%u5171%u548c%u53ca%u4e00%u8a5e%u53e4%u5c31%u6709%u6700%u65e9%u6307%u4f4f%u55ba%u300c%u5929%u300d%uff08%u4e16%u754c%uff09%u5fc3%u539f%u5730%u5e36%u8fd1%u4ee3%u4f86%u6210%u70ba%u65cf%u5bb6%u7fa9%u4e0a%u653f%u6cbb%u6982%u5ff5%u822c%u569f%u8b1b%u5e7e%u7a2e%u540c%u4f46%u76f8%u95dc%u601d%u53f2%u5b78%u89d2%u5ea6%u4e09%u7687%u4e94%u5e1d%u50b3%u8aaa%u6642%u958b%u59cb%u7d93%u6b77%u5510%u582f%u3001%u865e%u821c%u590f%u5546%u5468%u79e6%u6f22%u65b0%u6649%u5357%u5317%u671d%u968b%u5341%u5b8b%u907c%u91d1%u5143%u660e%u57cb%u7b49%u7cfb%u5217%u6b0a%u5481%u9023%u9f4a%u6574%u9ad4%u4f4d%u65bc%u6b50%u4e9e%u5927%u9678%u6771%u90e8%u592a%u5e73%u6d0b%u897f%u5cb8%u53e3%u591a%u57df%u95ca%u4e4b/%u884c%u800c%u5b58%u5728%u5169%u500b%u9999%u6e2f%u6fb3%u9580%u81fa%u7063%u5340%u76ee%u9304%5b%u6536%5d1%u6e90.2%u524d3456%u8a9e%u8a007%u5b97%u6559%u7de8%u8f2f%u7528%u6cd5%u82b1%u516b%u8a71%u89c0%u9ede%u8b58%u5f62%u614b%u80fd%u5c0d%u7bc4%u570d%u5404%u6b63%u7d71%u6027%u5f7c%u6b64%u9593%u89e3%u73fe%u6240%u77e5%u5b57%u300a%u5c1a%b7%u6893%u6750%u300b%u5165%u9762%u65e2%u4ed8%u8d8a%u53a5%u7586%u571f%u5148%u738b%u8086%u55f0%u9663%u542b%u53ea%u4e0d%u904e%u5df1%u5c45%u65b9%u7a31%u8b02%u4f62%u54cb%u8a8d%u56db%u5206%u5225%u4ffe%u53eb%u883b%u5937%u620e%u72c4%u521d%u5b50%u8af8%u4faf%u7bc9%u57ce%u908a%u90ca%u9060%u91ce%u4eac%u757f%u597d%u4f3c%u66b4%u52d5%u7576%u7136%u4ea6%u885b%u61ff%u516c%u990a%u9db4%u797f%u4fb5%u6230%u62db%u81f4%u6ec5%u53c3%u8003%u56e0%u662f%u52a0%u4fee%u98fe%u81f3%u78ba%u8868%u793a%u96a8%u767c%u5c55%u76f4%u63a5%u65b7%u64f4%u6625%u79cb%u5df2%u9010%u6f38%u5649%u517c%u4f75%u5287%u70c8%u9032%u8da8%u5411mm

using apache commons library, can do:

final string encoded; // string without trailing mm final string replaced = encoded.replace("%", "\\"); final string decoded = stringescapeutils.unescapejava(replaced); system.out.println(decoded); 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -