I am attempting to scoop some utf-8 encoded (Spanish text) data from a sqlite database and then display it in a webview. The essential parts of the code are as follows:
String web_data_string = cursor.getString(0);
webview.loadData(web_data_string, "text/html", "utf-8");
The string is a word containing all normal characters except one which should be a lower-case e+acute. In the webview all the normal characters appear correctly, but the e+acute appears as two characters, an A+tilde followed by a copyright symbol.
Where did I go wrong?
EDIT: +1 to dd619 for a solution that can be made to work, but I am hoping for a more general solution where there may be many more special characters, in other languages too.