Here's a sample for Android. The same thing happened when I tried it in desktop Java. How do I get it to work?
The prefix comes from another question about displaying UTF-8 in WebViews.
public class MainActivity extends Activity
{
Util util = Util.get(this);
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
WebView w = new WebView(this);
setContentView(w);
String prefix = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
String data0 = "%92";
String data;
try
{
data = URLDecoder.decode(data0, "UTF-8");
}
catch (UnsupportedEncodingException e)
{
data = e.getLocalizedMessage();
}
w.loadData(prefix + data, "text/html; charset=UTF-8", "utf-8");
}
}