Search code examples
androidurlandroid-webviewspecial-characters

android webview loadurl() with apostrophe char into string


i try to load this url into my webview : https://fr.wikipedia.org/wiki/Abbaye_d'Engelberg but it dont work cause it contains ' character how can i fix it please?


Solution

  • Please put the url like below

    https://fr.wikipedia.org/wiki/Abbaye_d%27Engelberg

    url encoding for ' is %27