Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IF Js data contains "%" will be throw illegal token in URLDecoder.decode(url, "UTF-8"); #35

Open
carl1990 opened this issue May 10, 2016 · 3 comments

Comments

@carl1990
Copy link

IF Js data contains "%"
in BridgeWebView BridgeWebViewClient method URLDecoder.decode(url, "UTF-8"); statement will make app crash

@kbq670554802
Copy link

我也遇到了

@kbq670554802
Copy link

I also met.Could you tell me how to solve

@XiDaDa
Copy link

XiDaDa commented Mar 22, 2017

if js data contains "%", try :
try {
url = URLDecoder.decode(url.replaceAll("%(?![0-9a-fA-F]{2})", "%25") ,"UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}

reference: http://www.lai18.com/content/9784708.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants