Skip to content

Instantly share code, notes, and snippets.

@openopen114
Last active June 15, 2016 07:25
Show Gist options
  • Save openopen114/ac11769f40bbcef48ef9e6b99fd6273d to your computer and use it in GitHub Desktop.
Save openopen114/ac11769f40bbcef48ef9e6b99fd6273d to your computer and use it in GitHub Desktop.
//GG crach
let webViewURL001: String = "http://text.com/?q1=我是中文&q2=我是符號%%%"
//Good to go with string.stringByAddingPercentEncodingWithAllowedCharacters(.URLHostAllowedCharacterSet())!
let webViewURL002: String = "http://text.com/?q1=我是中文&q2=我是符號%%%".stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet())!
let url = NSURL(string: webViewURL002)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment